Advertising:
Instalacion del Zabbix Agent en Solaris 10 y Solaris 11
Descargamos la ultima version del paquete de zabbix.com/download_agents
Solaris 10: https://cdn.zabbix.com/zabbix/binaries/stable/5.2/5.2.6/zabbix_agent-5.2.6-solaris-10-i386-openssl.pkg Solaris 11: https://cdn.zabbix.com/zabbix/binaries/stable/5.2/5.2.6/zabbix_agent-5.2.6-solaris-11-i386-openssl.p5p
Ficheros y Templates: git clone https://[email protected]/mobarrio/zabbix-agento-solaris.git
Instalacion en Solaris 11
# pkg install -g file:///root/zabbix_agent-5.2.6-solaris-11-i386-openssl.p5p zabbix-agent
Packages to install: 1
Services to change: 2
Create boot environment: No
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 1/1 11/11 5.8/5.8 144M/s
PHASE ITEMS
Installing new actions 40/40
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Updating package cache 2/2
# svccfg export zabbix-agent # vi /etc/opt/zabbix-agent/zabbix_agentd.conf ACTUALIZAMOS LOS PARAMETROS DEL AGENTE
# svcadm disable zabbix-agent # svcadm enable zabbix-agent # svcs -a
Instalación en Solaris 10
# pkgadd -d ./zabbix_agent-5.2.6-solaris-10-i386-openssl.pkg
Algunos UserParameters útiles
vi solaris_userparameter.conf # # Discoverys # UserParameter=discovery.packages, /etc/zabbix/bin/discovery_projects.py UserParameter=discovery.oracledb, /etc/zabbix/bin/discovery_oracledb.py UserParameter=discover.svc, /etc/zabbix/bin/ssoo_services $1 # # Monitores # UserParameter=svc.site[*],/usr/bin/svcs -a | /usr/bin/egrep -i -c 'online.*site' | /usr/bin/egrep -v -c $1 UserParameter=svc.site.byname[*],/usr/bin/svcs -a | /usr/bin/egrep -i online | /usr/bin/egrep -i -c $1 | /usr/bin/egrep -v -c 1 UserParameter=check.svc[*],/usr/bin/svcs -a | /usr/bin/egrep "online.*" | /usr/bin/egrep -ic $1 UserParameter=check.inodos[*], /etc/zabbix/bin/ssoo_df-i $1 UserParameter=check.queue.count[*], /usr/bin/ls $1 | wc -l UserParameter=project.cpuusage[*], /etc/zabbix/bin/projects_get_cpuusage.py $1 UserParameter=project.memusage[*], /etc/zabbix/bin/projects_get_memusage.py $1 UserParameter=project.nproc[*], /etc/zabbix/bin/projects_get_nproc.py $1 UserParameter=oracledb.localno[*], /usr/bin/ps -ef|/usr/bin/egrep -i "$1 \(LOCAL=NO\)"|/usr/bin/egrep -v grep|/usr/bin/wc -l|/usr/bin/xargs UserParameter=oracledb.localyes[*], /usr/bin/ps -ef|/usr/bin/egrep -i "$1 \(LOCAL=YES\)"|/usr/bin/egrep -v grep|/usr/bin/wc -l|/usr/bin/xargs UserParameter=host.ncpu, /etc/zabbix/bin/host_ncpus.py UserParameter=host.memtotal, /etc/zabbix/bin/host_memtotal.py UserParameter=host.kthr.runq, /etc/zabbix/bin/host_vmstat.py --kthr_runq UserParameter=host.kthr.blocked, /etc/zabbix/bin/host_vmstat.py --kthr_blocked UserParameter=host.kthr.waiting, /etc/zabbix/bin/host_vmstat.py --kthr_waiting UserParameter=host.swapfree, /etc/zabbix/bin/host_vmstat.py --swapfree UserParameter=host.memfree, /etc/zabbix/bin/host_vmstat.py --memfree UserParameter=host.pagein, /etc/zabbix/bin/host_vmstat.py --pagein UserParameter=host.pageout, /etc/zabbix/bin/host_vmstat.py --pageout UserParameter=host.scanrate, /etc/zabbix/bin/host_vmstat.py --scanrate UserParameter=nfs.check[*], /etc/zabbix/bin/host_nfs_check.py --mountpoint $1 vi solaris_mpstat_userparameter.conf UserParameter=discovery.procs, /etc/zabbix/bin/ssoo_mpstat.v2.py --discovery UserParameter=procs.stat, /etc/zabbix/bin/ssoo_mpstat.v2.py --gather UserParameter=procs.metric[*], /etc/zabbix/bin/ssoo_mpstat.v2.py --getdata $1 --metric $2