Pnp4 nagios unable to display historical data for a service

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.
Locked
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Pnp4 nagios unable to display historical data for a service

Post by rohithroki »

Dear Team,

I am using pnp4 nagios for getting the historical data for the services configured for a particular server.How ever when i try to take the historical data for a particular service i am getting below error.

PNP4Nagios Version 0.6.21
Please check the documentation for information about the following error.

XML file "/usr/local/pnp4nagios/var/perfdata/sappidb/HPUX-MEM_Usage.xml" not found. Read FAQ online

Attaching the screenshot also for your reference.

Kindly let me know how to fix the same as i need to get the data for this service for the last one month.

Regards,
RKJ
Attachments
pnp4 error
pnp4 error
kyang

Re: Pnp4 nagios unable to display historical data for a serv

Post by kyang »

Here is something interesting about the error.
Take a look at this article.

https://geekpeek.net/pnp4nagios-xml-file-not-found/
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Pnp4 nagios unable to display historical data for a serv

Post by rohithroki »

@kyang

Thank you for the reply.
i am attaching my plugin along with the reply.i have gone through the post but not sure what needs to be added in the script.
Can you please check the plugin and let me know what needs to be added additionally.

Regards,
RKJ
Attachments
check_hp_mem.txt
check_hp_mem
(4.41 KiB) Downloaded 533 times
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Pnp4 nagios unable to display historical data for a serv

Post by rohithroki »

Hi All,

Can any one help on the below issue.

Regards,
RKJ
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Pnp4 nagios unable to display historical data for a serv

Post by rohithroki »

Dear Team,

Awaiting your help on the below help.
We need this data for an audit purpose.Kindly help to fix the issue.
Thanks in advance.

RKJ
kyang

Re: Pnp4 nagios unable to display historical data for a serv

Post by kyang »

Hi rohithroki,

The plugin needs performance data parameters.

Code: Select all

'label'=value[UOM];[warn];[crit];[min];[max]
The example output from the article is what your plugin needs.

Code: Select all

OK - Number of open files is 1592 | NumOpenFiles=1592;1900;2048;0;10000
You could also take a look at our guidelines.

http://nagios-plugins.org/doc/guideline ... PERLPLUGIN

http://nagios-plugins.org/doc/guidelines.html#AEN200
Locked