Monday, 23 June 2014

How to test if your zabbix server receive data from zabbix client EXPLAINED!

Ok, so you have installed zabbix agent on your server. Process zabbix client is up and running but does zabbix server start to receive data from it?

Simplest way to this is to connect to your zabbix server and iniate zabbix_get command! With this command can get to see data from zabbix client!

How to do this?

zabbix_server#zabbix_get -s IP_ZABBIX_CLIENT -k ZABBIX_ITEM

Zabbix item can be any item that is using on zabbix client!

If you client is on IP address 192.168.0.2 and then command will look like this!

# zabbix_get -s 192.168.0.2 -k agent.version
2.2.1


In case that you see something like this, then this means that you have communication between zabbix server and zabbix client!

In case that you have this error

zabbix_server#zabbix_get -s 192.168.0.2 -k agent.version
zabbix_get [30914]: Timeout while executing operation


check IP address of your zabbix client, if you can even connect to that server or if that server is alive!

If your error is this

zabbix_server# zabbix_get -s 192.168.0.2 -k agent.version
zabbix_get [31561]: Get value error: cannot connect to [[192.168.0.2 ]:10050]: [111] Connection refused

server 192.168.0.2 is alive but zabbix agent is not installed, not running or firewall is blocking it!

1 comment:

Marcio Roberto Geraldo said...

Very good!!!

It works fine!

TKS!!