I am using a perl script to get the server-status page from Apache and parse it into various items in my Template_App_Apache template.
It's not working at all, however. When I browse to the host in question ('centaurus'), I see all of the items listed from the template, and all of them are Active.
I have tried it every way I can think of, and have looked through all of the documentation (which is wrong in some cases).
Command: zabbix_sender -vv --zabbix-server '{server_ip}' --port '10051' -i '/tmp/apache-stats.txt'
Content of apache-stats.txt:
Return value:
If I tail the zabbix_server.log file on the server, nothing is output when this happens. It's as if the server does not acknowledge the request.
I can telnet from the host to the server on port 10051, so I know it's listening.
It's not working at all, however. When I browse to the host in question ('centaurus'), I see all of the items listed from the template, and all of them are Active.
I have tried it every way I can think of, and have looked through all of the documentation (which is wrong in some cases).
Command: zabbix_sender -vv --zabbix-server '{server_ip}' --port '10051' -i '/tmp/apache-stats.txt'
Content of apache-stats.txt:
centaurus apache.total_accesses 88764
centaurus apache.total_kbytes 103240
centaurus apache.cpuload .000140388
centaurus apache.uptime 954499
centaurus apache.reqpersec .0929954
centaurus apache.bytespersec 110.757
centaurus apache.bytesperreq 1191
centaurus apache.busyservers 6
centaurus apache.idleservers 19
centaurus apache.total_kbytes 103240
centaurus apache.cpuload .000140388
centaurus apache.uptime 954499
centaurus apache.reqpersec .0929954
centaurus apache.bytespersec 110.757
centaurus apache.bytesperreq 1191
centaurus apache.busyservers 6
centaurus apache.idleservers 19
Return value:
zabbix_sender [30484]: DEBUG: Answer [{
"response":"success",
"info":"Processed 0 Failed 9 Total 9 Seconds spent 0.000073"}]
Info from server: "Processed 0 Failed 9 Total 9 Seconds spent 0.000073"
sent: 9; skipped: 0; total: 9
"response":"success",
"info":"Processed 0 Failed 9 Total 9 Seconds spent 0.000073"}]
Info from server: "Processed 0 Failed 9 Total 9 Seconds spent 0.000073"
sent: 9; skipped: 0; total: 9
If I tail the zabbix_server.log file on the server, nothing is output when this happens. It's as if the server does not acknowledge the request.
I can telnet from the host to the server on port 10051, so I know it's listening.
Comment