Performance data feed to pnt4nagios issues

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
kal800
Posts: 1
Joined: Sun Nov 24, 2024 10:15 am

Performance data feed to pnt4nagios issues

Post by kal800 »

Hello everybody,

I'm having a problem with data feed.

My plugin produces the following output:

OK: Scenario 1 (Shell Tube) completed at 2024:11:24 15:22:52 | 'TmLogin'=2.41s;5.00;15.00;; 'TmPrTree'=1.70s;3.00;6.00;; 'TmCalculate'=5.21s;10.00;20.00;; 'TmGenPDF'=1.09s;3.00;8.00;;

I've got perfdata file template as follows:

service_perfdata_file_template=DATATYPE::SERVICEPERFDATA TIMET::$TIMET$ HOSTNAME::$HOSTNAME$ SERVICEDESC::$SERVICEDESC$ SERVICEPERFDATA::$SERVICEPERFDATA$ PLUGINOUTPUT::$OUTPUT$

The output is:

DATATYPE::SERVICEPERFDATA TIMET::1732461829 HOSTNAME::localhost SERVICEDESC::Cairo Monitoring SERVICEPERFDATA::'TmLogin'=2.15s;5.00;15.00;; 'TmPrTree'=1.57s;3.00;6.00;; 'TmCalculate'=4.76s;10.00;20.00;; 'TmGenPDF'=1.09s;3.00;8.00;; PLUGINOUTPUT::$OUTPUT$

However npcd fails to process:

2024-11-24 16:27:10 [136706] [2] Processing Line 1
2024-11-24 16:27:10 [136706] [2] Datatype set to 'SERVICEPERFDATA TIMET::1732460592 HOSTNAME::localhost SERVICEDESC::Cairo Monitoring SERVICEPERFDATA::'TmLogin'=2.38s;5.00;15.00;; 'TmPrTree'=2.61s;3.00;6.00;; 'TmCalculate'=5.21s;10.00;20.00;; 'TmGenPDF'=1.10s;3.00;8.00;; PLUGINOUTPUT::$OUTPUT$'
2024-11-24 16:27:10 [136706] [2] No Perfdata. Skipping line 1


I assume my output is somehow malformed or the template is wrong. Could you please advise?

Kal800
User avatar
lgute
Posts: 236
Joined: Mon Apr 06, 2020 2:49 pm

Re: Performance data feed to pnt4nagios issues

Post by lgute »

Hi @kal800,

Thanks for reaching out.

Is there anything helpful in the log files?
Please let us know if you have any other questions or concerns.

-Laura
Post Reply