Page 1 of 1

Performance data feed to pnt4nagios issues

Posted: Sun Nov 24, 2024 10:25 am
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

Re: Performance data feed to pnt4nagios issues

Posted: Mon Dec 02, 2024 6:07 pm
by lgute
Hi @kal800,

Thanks for reaching out.

Is there anything helpful in the log files?