Hi,
I am trying to set up a monitor of SSH tunnel I have created. Basically the remote end of this tunnel has an endless loop with
echo "pong" | nc -l 13307
whereas I do "nc localhost 13307" on the other end of the tunnel to see if the tunnel is still functioning. This all works, but I want to hook this to Zabbix.
So I have following in my zabbix_agentd.conf on the monitored machine:
...
UserParameter=tunping,nc 127.0.0.1 13307
UserParameter=ping,echo 1
...
If I run "nc 127.0.0.1 13307" on the monitored machine, I get "pong".
But if I do the same from Zabbix server, I get the following:
user@zabbix:$ zabbix_get -s monitored_machine -k tunping
ZBX_NOTSUPPORTED
user@zabbix:$ zabbix_get -s monitored_machine -k ping
1
Is there any reason why tunping fails bug ping works? I am using 1.8.1 version of Zabbix, as it comes by default with Ubuntu lucid.
Excerpt from /var/log/zabbix-agent/zabbix_agentd.log:
22268:20101229:235836.631 Processing request.
22268:20101229:235836.632 Requested [tunping]
22268:20101229:235836.635 Before
22268:20101229:235836.635 Sending back [ZBX_NOTSUPPORTED]
Is there any other way to ask zabbix agent to telnet to a port on localhost and retrieve whatever comes back?
I am trying to set up a monitor of SSH tunnel I have created. Basically the remote end of this tunnel has an endless loop with
echo "pong" | nc -l 13307
whereas I do "nc localhost 13307" on the other end of the tunnel to see if the tunnel is still functioning. This all works, but I want to hook this to Zabbix.
So I have following in my zabbix_agentd.conf on the monitored machine:
...
UserParameter=tunping,nc 127.0.0.1 13307
UserParameter=ping,echo 1
...
If I run "nc 127.0.0.1 13307" on the monitored machine, I get "pong".
But if I do the same from Zabbix server, I get the following:
user@zabbix:$ zabbix_get -s monitored_machine -k tunping
ZBX_NOTSUPPORTED
user@zabbix:$ zabbix_get -s monitored_machine -k ping
1
Is there any reason why tunping fails bug ping works? I am using 1.8.1 version of Zabbix, as it comes by default with Ubuntu lucid.
Excerpt from /var/log/zabbix-agent/zabbix_agentd.log:
22268:20101229:235836.631 Processing request.
22268:20101229:235836.632 Requested [tunping]
22268:20101229:235836.635 Before
22268:20101229:235836.635 Sending back [ZBX_NOTSUPPORTED]
Is there any other way to ask zabbix agent to telnet to a port on localhost and retrieve whatever comes back?
Comment