View Full Version : Agentd -> My prog -> Sender -> Server
Hello!
I'm trying to do a a setup where i poll the zabbix_agentd locally on the monitored host with a 'small prog', after polling for data the data will be send with zabbix_sender to the zabbix_server.
It's sort of an replacement for active checks until they become available in the Win32 client.
My question is, how to i get connect with my 'small prog' to the the agent? Can i simply open a socket and pass a string and i will get a return? Or how does it work?
- Simon
Yup, open the socket, dump the full item string plus CR, expect characters back.
veearreff root # telnet 192.168.200.252 10050
Trying 192.168.200.252...
Connected to 192.168.200.252.
Escape character is '^]'.
diskfree[/]
18419140.000000Connection closed by foreign host.
veearreff root # telnet 192.168.200.252 10050
Trying 192.168.200.252...
Connected to 192.168.200.252.
Escape character is '^]'.
memory[free]
4071424.000000Connection closed by foreign host.
veearreff root #
Make sure you configure agentd with the Server directive pointed to localhost however, otherwise it'll RST as soon as the socket's been opened.
So getting the "ZBX_NOTSUPPORTED" means that i need to change my zabbix_agentd.conf?
That would be correct.
If zabbix_agentd doesn't know what you're asking for, it just says it's not supported.
# telnet host 10050
Trying x.x.x.x...
Connected to host (x.x.x.x).
Escape character is '^]'.
i_want_random_stuff
ZBX_NOTSUPPORTED
Connection closed by foreign host.
Hmmm weird behavior...
when i telnet to a linux host running zabbix_agentd i get a return like:
Trying xxx...
Connected to xx.
Escape character is '^]'.
version[zabbix_agent]
1.1alpha10
Connection closed by foreign host.
if i do the same on a windows host i get:
Trying yyy...
Connected to yyy.
Escape character is '^]'.
version[zabbix_agent]
ZBX_NOTSUPPORTED
Connection closed by foreign host.
Does the windows agent somehow behave differently?