Page 1 of 1

Performance Data Issue Nagios Core

Posted: Tue Oct 30, 2018 11:34 pm
by Akshay18
Hi,

I have configured the devices and pnp4nagios tool is configure correctly but the issue is when performance data is created they show me last 10mins of data in none none format but after 10 mins it shows full data but the last 10mins value is same. So anyone can help me to sort out this.
I have attached the screenshot please see the performance data file.


Thanks and Regards,
Akshay Kaushik

Re: Performance Data Issue Nagios Core

Posted: Wed Oct 31, 2018 2:08 pm
by tgriep
The performance data is provided by the plugin so we will need to know what plugin you are using, how it is configured and what type of system and or data that the plugin is polling.

Re: Performance Data Issue Nagios Core

Posted: Thu Nov 01, 2018 7:00 am
by shubham
Hi,

On the behalf of Akshay we are using pnp4nagios tool below are the link:-
https://support.nagios.com/kb/article/n ... s-801.html

An data is pulling for a particular host.

Re: Performance Data Issue Nagios Core

Posted: Thu Nov 01, 2018 12:42 pm
by tgriep
To trouble shoot this, we will need to know which plugin you are using to generate the data for the performance data file.
We will also need to see how the plugin is configured in the Nagios Config files and the settings for the service check that is using the plugin.

You may want to go to the PNP4Nagios web site for more details on what PNP4Nagios does.
https://docs.pnp4nagios.org/

Re: Performance Data Issue Nagios Core

Posted: Fri Nov 02, 2018 11:32 pm
by shubham
I don't use any plugin for generate the data. I will show you my nagios configurtion file please see the screenshot and let me know.

Re: Performance Data Issue Nagios Core

Posted: Mon Nov 05, 2018 10:15 am
by tgriep
Can you provide the command that you are running that you are using to output that data from your screen capture?

Re: Performance Data Issue Nagios Core

Posted: Wed Nov 07, 2018 12:14 am
by shubham
I am using this below commands:-
1) python
2) import rrdtool
3) rrdtool.fetch("Uptime.rrd","MAX")

then it shows the data for Uptime service.

Re: Performance Data Issue Nagios Core

Posted: Wed Nov 07, 2018 11:36 am
by tgriep
It looks like you are running some sort of plugin that gathers the Uptime of some system.
Make sure it is running at the times you need.

I found this link that has a possible explanation on what you are seeing.
https://stackoverflow.com/questions/472 ... one-object

If there is no data at the time you ran the fetch, it will display as None since there is no data to display.
Also, you are not specifying a time frame for the fetch.


You should take a look at these links that details how the data is stored in the RRD files.
https://oss.oetiker.ch/rrdtool/tut/rrd- ... rs.en.html
https://www.loriotpro.com/Products/On-l ... RRD_EN.htm


Every time the plugin runs and outputs the performance data, it add it to the rrd file with a time stamp for when it is put in.
It does not remove the previous data entry so when you run the FETCH command, it will display the last data points unless you specify a time.
https://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html