PDA

View Full Version : item for checking zabbix connection


kopspa
19-05-2006, 11:42
hi,
how i can make an item that
report the seconds from the last connection from zabbix_agentd to zabbix_server (active check)

and then a trigger if seconds > 120

many thanks!

erisan500
19-05-2006, 12:21
Can you explain a bit more what you are trying to do?

kopspa
19-05-2006, 12:56
i want to check if a remote zabbix_agentd is connected to my zabbix_server

i use only active checks (because all my monitored machines are behind a firewall/nat) so i can't connect to the monitored zabbix_agentd port!

i hope that you understand it now :)

just2blue4u
19-05-2006, 13:13
Perhaps you can do this with item "agent.ping" ...
(see http://www.zabbix.com/manual/v1.1/config_items.php for more information)

kopspa
19-05-2006, 13:26
can't be pinged... we have very strict policies for the firewalls

i need to determine if a remote zabbix_agentd is connected to my zabbix_server (via a tcp check or any other trick)

erisan500
19-05-2006, 14:12
Why don't you just use "status" and alert when status changed to 1?

kopspa
19-05-2006, 14:47
doesn't return anything (tried as simple check, zabbix agent and zabbix agent active)
it shows

Status | - | - | - | Graph (in Overview -> Latest Data)

i think that it must return 0 or 1, no?

erisan500
19-05-2006, 14:58
What version are you using?

Status used to work in beta9 but seems to be broken in beta10 :/

kopspa
19-05-2006, 15:13
server side beta9
client side beta9 and 10
but returns nothing on all hosts (b9 and b10)

kopspa
19-05-2006, 16:11
otherwise can i make a check like this?

if zabbix_server doesn't receive data from a zabbix_agentd for 5 minutes (or if the time of the last check is more then 5 minutes), than launch the trigger (and then the action)

anyone can help me??? my setup is almost complete (basic checks, as if process slapd,mysqld, ecc are running ecc), but i don't know how to make the item and the trigger for this condition (i can't find something useful in the docs)!

Alexei
19-05-2006, 16:12
Function nodata(<sec>) will return 1 of no data were received for an item.

kopspa
19-05-2006, 16:32
ok but i see in the documentation that is only supported in 'zabbix trapper' items

what is a zabbix trapper? i can't find anything in the docs.
if i try to make a trapper item, i can't set the 'update interval'

erisan500
19-05-2006, 16:37
You need to use that in a trigger like:

{Host.Win32:vfs.fs.size[c:,free].nodata(120)}=1

Alexei
19-05-2006, 16:40
ok but i see in the documentation that is only supported in 'zabbix trapper' items

The documentation is wrong, sorry for this. It is supported for any item regardless of its type.

kopspa
19-05-2006, 17:09
now my setup is ok (and the boss is happy! :D )

thanks very much

erisan500
19-05-2006, 17:12
And another happy user, glad you solved your problems ;)