Hi All,
Apologies for the lack of knowledge, I'm very new to Zabbix / general sysadmin work!
I have an issue with an Apache template and script I found on Github. The template has loaded fine but it's the zbxApacheStatusCheck script that I have an issue with.
Looking at /var/log/cron when it runs we see the following results:
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Metrics to be send)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( SERVER METRIC VALUE)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[failed] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ServerVersion] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Total Accesses] 725)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Total kBytes] 8331)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[CPULoad] .139234)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[CPUSystem] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[CPUUser] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Load1] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Load5] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Load15] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Uptime] 4101)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ReqPerSec] .176786)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[BytesPerSec] 2080.21)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[BytesPerReq] 11766.8)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[BusyWorkers] 3)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[IdleWorkers] 10)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[WaitingForConnection] 11)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[StartingUp] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ReadingRequest] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[SendingReply] 2)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[KeepAlive] 2)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[DNSLookup] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ClosingConnection] 2)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Logging] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[GracefullyFinishing] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[IdleCleanupOfWorker] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[OpenSlotWithNoCurrentProcess] 244)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[TotalWorkers] 256)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (########################################)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--host=[sanitized])
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--port=80)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--proto=http)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--zabbixserver=127.0.0.1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--sender=/usr/bin/zabbix_sender)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--zabbixport=10051)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--zabbixsource=OTL-CROSSRAIL-DEV)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--url=)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--user=)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--passwd=)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--timeout=30)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Final URL: http://[redacted]:80/server-status?auto)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (########################################)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Command line to collect data from Apache)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (/bin/curl --insecure --max-time 30 --silent --location -H "Cache-Control: no-cache" "http://[redacted]:80/server-status?auto")
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Command line to send data to Zabbix)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (/usr/bin/zabbix_sender -vv --zabbix-server 127.0.0.1 --port 10051 --input-file /tmp/tmp.xXzqlSaSY8)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (########################################)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (zabbix_sender output)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (zabbix_sender [18463]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 28; total: 28; seconds spent: 0.000308"}])
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Response from "127.0.0.1:10051": "processed: 0; failed: 28; total: 28; seconds spent: 0.000308")
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (sent: 28; skipped: 0; total: 28)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
I've looked at other threads on the issue but they refer to different arguments that don't quite match this issue.
The items are all configured by the template.xml that has been imported into Zabbix and all use numeric (float) for the type of information it's expecting.
Setting the server.config to extended debug doesn't show much other than what's returned to zabbix_sender:
7117:20190903:092001.811 trapper got '{"request":"sender data","data":[{"host":"OTL-CROSSRAIL-DEV","key":"custom.apache[failed]","value":"0"},{"host":"OTL-CROSSRAIL-DEV","key":"custom.apache[ServerVersion]$
7117:20190903:092001.811 In recv_senderhistory()
7117:20190903:092001.812 In process_client_history_data()
7117:20190903:092001.812 In parse_history_data()
7117:20190903:092001.812 End of parse_history_data():SUCCEED processed:28/28
7117:20190903:092001.812 In process_history_data()
7117:20190903:092001.812 End of process_history_data() processed:0
7117:20190903:092001.812 End of process_client_history_data():SUCCEED
7117:20190903:092001.812 In zbx_send_response_ext()
7117:20190903:092001.812 zbx_send_response_ext() '{"response":"success","info":"processed: 0; failed: 28; total: 28; seconds spent: 0.000464"}'
7117:20190903:092001.812 End of zbx_send_response_ext():SUCCEED
7117:20190903:092001.812 End of recv_senderhistory()
Can anyone help? Is there something that I need to set in zabbix_server.conf?
Thanks in advance
Apologies for the lack of knowledge, I'm very new to Zabbix / general sysadmin work!
I have an issue with an Apache template and script I found on Github. The template has loaded fine but it's the zbxApacheStatusCheck script that I have an issue with.
Looking at /var/log/cron when it runs we see the following results:
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Metrics to be send)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( SERVER METRIC VALUE)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[failed] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ServerVersion] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Total Accesses] 725)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Total kBytes] 8331)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[CPULoad] .139234)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[CPUSystem] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[CPUUser] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Load1] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Load5] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Load15] 0)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Uptime] 4101)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ReqPerSec] .176786)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[BytesPerSec] 2080.21)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[BytesPerReq] 11766.8)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[BusyWorkers] 3)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[IdleWorkers] 10)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[WaitingForConnection] 11)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[StartingUp] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ReadingRequest] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[SendingReply] 2)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[KeepAlive] 2)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[DNSLookup] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[ClosingConnection] 2)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[Logging] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[GracefullyFinishing] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[IdleCleanupOfWorker] 1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[OpenSlotWithNoCurrentProcess] 244)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ( OTL-CROSSRAIL-DEV custom.apache[TotalWorkers] 256)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (########################################)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--host=[sanitized])
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--port=80)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--proto=http)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--zabbixserver=127.0.0.1)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--sender=/usr/bin/zabbix_sender)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--zabbixport=10051)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--zabbixsource=OTL-CROSSRAIL-DEV)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--url=)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--user=)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--passwd=)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (--timeout=30)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Final URL: http://[redacted]:80/server-status?auto)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (########################################)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Command line to collect data from Apache)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (/bin/curl --insecure --max-time 30 --silent --location -H "Cache-Control: no-cache" "http://[redacted]:80/server-status?auto")
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Command line to send data to Zabbix)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (/usr/bin/zabbix_sender -vv --zabbix-server 127.0.0.1 --port 10051 --input-file /tmp/tmp.xXzqlSaSY8)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (########################################)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (zabbix_sender output)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (zabbix_sender [18463]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 28; total: 28; seconds spent: 0.000308"}])
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (Response from "127.0.0.1:10051": "processed: 0; failed: 28; total: 28; seconds spent: 0.000308")
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT (sent: 28; skipped: 0; total: 28)
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
Sep 3 10:09:01 id83585 CROND[18377]: (root) CMDOUT ()
I've looked at other threads on the issue but they refer to different arguments that don't quite match this issue.
The items are all configured by the template.xml that has been imported into Zabbix and all use numeric (float) for the type of information it's expecting.
Setting the server.config to extended debug doesn't show much other than what's returned to zabbix_sender:
7117:20190903:092001.811 trapper got '{"request":"sender data","data":[{"host":"OTL-CROSSRAIL-DEV","key":"custom.apache[failed]","value":"0"},{"host":"OTL-CROSSRAIL-DEV","key":"custom.apache[ServerVersion]$
7117:20190903:092001.811 In recv_senderhistory()
7117:20190903:092001.812 In process_client_history_data()
7117:20190903:092001.812 In parse_history_data()
7117:20190903:092001.812 End of parse_history_data():SUCCEED processed:28/28
7117:20190903:092001.812 In process_history_data()
7117:20190903:092001.812 End of process_history_data() processed:0
7117:20190903:092001.812 End of process_client_history_data():SUCCEED
7117:20190903:092001.812 In zbx_send_response_ext()
7117:20190903:092001.812 zbx_send_response_ext() '{"response":"success","info":"processed: 0; failed: 28; total: 28; seconds spent: 0.000464"}'
7117:20190903:092001.812 End of zbx_send_response_ext():SUCCEED
7117:20190903:092001.812 End of recv_senderhistory()
Can anyone help? Is there something that I need to set in zabbix_server.conf?
Thanks in advance
Comment