Hi, i discovered that the core eliminates quotes from the perfdata. I tried switching all checks to json as perfdata.
The check outputs this:
IF OK: TenGigE0/0/0/0 - frnk1-cr2 - IPv6 UP |
{"outoctet":882514625,"inpkt":3613666,"inerr":0,"time":184,"indisc":0,"outpkt":2540727,"outdisc":0,"inoctet":3172329487,"outerr":0}
The perfdata pipe outputs this:
SERVICE,1364987085,frnk1-cr2,04b6cd141e981f7932a346b202a0b80a,if
TenGigE0/0/0/0,685497cbd8258eb1f06117f8fe16f3ae,
0.048,0.034,{outoctet:5151173146,inpkt:4115371,inerr:0,time:300,indisc:0,outpkt:5890634,outdisc:0,inoctet:1423024050,outerr:0}
quotes are gone. Perfdata config like this:
process_performance_data=1
service_perfdata_file_mode=p
service_perfdata_file=/var/lib/nagios3/perfdata.pipe
service_perfdata_file_template=SERVICE,$TIMET$,$HOSTNAME$,$_HOSTNDBOBJID$,$SERVICEDESC$,$_SERVICENDBOBJID$,$SERVICEEXECUTIONTIME$,$SERVICELATENCY$,$SERVICEPERFDATA$
service_perfdata_file_processing_interval=0
Is there a hidden knob? I thought the core would treat the perfdata as an
bytestring not trying to deal with it.
Flo
--
Florian Lohoff [email protected]
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
