Hi All,
Trying to pass a time value back, but it fails, and is not sent to the server. Tried various options server side, including just accepting it as a text value - to no avail.
Only happens with time value, single numbers are returned OK.
Based on the APC template from Zabbix Wiki.
Log is below:
4712:20130221:150438.596 For key [apc[.1.3.6.1.4.1.318.1.1.1.2.1.2.0]] received value [0:00:00.00]
4712:20130221:150438.599 In process_value() key:'UPStest.ignoreme.test:apc[.1.3.6.1.4.1.318.1.1.1.2.1.2.0]' value:'0:00:00.00'
4712:20130221:150438.602 In send_buffer() host:'ourserver.ourdomain.com' port:10051 values:0/100
4712:20130221:150438.605 End of send_buffer():SUCCEED
4712:20130221:150438.608 buffer: new element 0
4712:20130221:150438.611 End of process_value():SUCCEED
4712:20130221:150438.614 End of process_active_checks()
4712:20130221:150438.617 In get_min_nextcheck()
4712:20130221:150438.620 Sleeping for 1 second(s)
3972:20130221:150438.726 In collect_perfstat()
4712:20130221:150439.624 In send_buffer() host:'ourserver.ourdomain.com' port:10051 values:1/100
4712:20130221:150439.632 JSON before sending [{
"request":"agent data",
"data":[
{
"host":"UPStest.ignoreme.test,
"key":"apc[.1.3.6.1.4.1.318.1.1.1.2.1.2.0]",
"value":"0:00:00.00",
"clock":1361459078,
"ns":416752938}],
"clock":1361459079,
"ns":433698046}]
4712:20130221:150439.642 JSON back [{
"response":"success",
"info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000069"}]
4712:20130221:150439.647 In check_response() response:'{
"response":"success",
"info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000069"}'
4712:20130221:150439.651 Info from server: Processed 0 Failed 1 Total 1 Seconds spent 0.000069
4712:20130221:150439.656 End of check_response():SUCCEED
4712:20130221:150439.661 OK
4712:20130221:150439.665 End of send_buffer():SUCCEED
4712:20130221:150439.670 Sleeping for 1 second(s)
Any thoughts?
Trying to pass a time value back, but it fails, and is not sent to the server. Tried various options server side, including just accepting it as a text value - to no avail.
Only happens with time value, single numbers are returned OK.
Based on the APC template from Zabbix Wiki.
Log is below:
4712:20130221:150438.596 For key [apc[.1.3.6.1.4.1.318.1.1.1.2.1.2.0]] received value [0:00:00.00]
4712:20130221:150438.599 In process_value() key:'UPStest.ignoreme.test:apc[.1.3.6.1.4.1.318.1.1.1.2.1.2.0]' value:'0:00:00.00'
4712:20130221:150438.602 In send_buffer() host:'ourserver.ourdomain.com' port:10051 values:0/100
4712:20130221:150438.605 End of send_buffer():SUCCEED
4712:20130221:150438.608 buffer: new element 0
4712:20130221:150438.611 End of process_value():SUCCEED
4712:20130221:150438.614 End of process_active_checks()
4712:20130221:150438.617 In get_min_nextcheck()
4712:20130221:150438.620 Sleeping for 1 second(s)
3972:20130221:150438.726 In collect_perfstat()
4712:20130221:150439.624 In send_buffer() host:'ourserver.ourdomain.com' port:10051 values:1/100
4712:20130221:150439.632 JSON before sending [{
"request":"agent data",
"data":[
{
"host":"UPStest.ignoreme.test,
"key":"apc[.1.3.6.1.4.1.318.1.1.1.2.1.2.0]",
"value":"0:00:00.00",
"clock":1361459078,
"ns":416752938}],
"clock":1361459079,
"ns":433698046}]
4712:20130221:150439.642 JSON back [{
"response":"success",
"info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000069"}]
4712:20130221:150439.647 In check_response() response:'{
"response":"success",
"info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000069"}'
4712:20130221:150439.651 Info from server: Processed 0 Failed 1 Total 1 Seconds spent 0.000069
4712:20130221:150439.656 End of check_response():SUCCEED
4712:20130221:150439.661 OK
4712:20130221:150439.665 End of send_buffer():SUCCEED
4712:20130221:150439.670 Sleeping for 1 second(s)
Any thoughts?