perfdata - core eliminates " from perfdata

Florian Lohoff f at zz.de
Wed Apr 3 13:08:39 CEST 2013


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                                                 f at zz.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130403/f76db449/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list