Sie sind auf Seite 1von 2

El resultado del comando isainfo para un sistema basado en x86 que ejecuta el ncl

eo de 64 bits
se visualiza de la siguiente manera:
# isainfo
# amd64 i386
Por lo tanto debemos descargar el agente perteneciente al nucleo de 64 bits
el cual el archivo es zabbix_agents_2.2.5.solaris10.amd64.tar.gz.
# cd ~
# mkdir zabbix
# cd zabbix/
# wget http://www.zabbix.com/downloads/2.2.5/zabbix_agents_2.2.5.solaris10.amd64
.tar.gz
# gunzip zabbix_agents_2.2.5.solaris10.amd64.tar.gz
# tar -xvf zabbix_agents_2.2.5.solaris10.amd64.tar
# chown root:bin bin/zabbix_*
# chown root:bin sbin/zabbix_agent*
# cp bin/zabbix_* /usr/bin/
# cp sbin/zabbix_agent* /usr/sbin/
# cd ~
# rm -fr zabbix/
Creamos el grupo y nombre de usuario zabbix
# groupadd -g 122 zabbix
# useradd -c 'Zabbix' -d / -g zabbix -s /usr/bin/false zabbix
3 - Service configuration
Find where the configuration file should be put.
# strings /usr/sbin/zabbix_agentd | grep zabbix_agentd.conf
/usr/local/etc/zabbix_agentd.conf
Y creamos el agente en esta direccion
/etc/zabbix/zabbix_agentd.conf
You can create your own configuration file. Here is a simple example.
Hostname=Osorno
ListenPort=10051
Server=127.0.0.1,192.168.0.105,192.168.0.107
NOTA =
El agente en las direcciones /usr/local/etc/zabbix_agentd.conf
y en /usr/local/etc/zabbix_agentd.conf deben tener lo mismo sino este no va a co
rrer en momento de ejecutarse
# mkdir /etc/zabbix/
# vi /etc/zabbix/zabbix_agentd.conf
# chown root:root /etc/zabbix/zabbix_agentd.conf
Enable the zabbix agent service so that it will start when the system starts up.
Here is a script I created to start and stop the zabbix agent daemon.
#!/bin/sh
CONFIG=/etc/zabbix/zabbix_agentd.conf
DAEMON=/usr/sbin/zabbix_agentd
case "$1" in
start)
if [ -f $CONFIG -a -f $DAEMON ]; then
echo 'Starting zabbix_agentd.'
$DAEMON
fi
;;
stop)
echo 'Stopping zabbix_agentd.'
pkill -TERM -x zabbix_agentd
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
# vi /etc/init.d/zabbix_agentd
# chown root:sys /etc/init.d/zabbix_agentd
# chmod 744 /etc/init.d/zabbix_agentd
# cp /etc/init.d/zabbix_agentd /etc/rc3.d/S99zabbix_agentd
# chown root:sys /etc/rc3.d/S99zabbix_agentd
Before starting the service, make sure that tcp port 10050 is open in case you
are running firewall software.
Start the zabbix agent service.
# /etc/init.d/zabbix_agentd start
Starting zabbix_agentd.
# pgrep -d ' ' zabbix_agentd
28114 28111 28116 28113 28112 28115
4 - Service check
Reboot your computer. Log in like normal and check to see that the zabbix
agent service is running. That's it, now you have the zabbix agent running in
Solaris.
# shutdown -y -g 0 -i 6
# pgrep -d ' ' zabbix_agentd
261 263 259 273 274 275

Das könnte Ihnen auch gefallen