Graphing Wierdness

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Graphing Wierdness

Post by Box293 »

Then the problem must exist in the rrd or xml file (I suspect).

Try my steps on the integer files, however I don't think it will work. Being an snmp counter it is just an incrementing number. I don't understand how the other one has data coming back that is not incrementing at a higher number than the time before.

Generally speaking, to get this delta type of graph on a counter value you need to use MRTG to collect the data, which kind of gets complicated. That's why I'm confused it's working the way it is.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
weveland
Posts: 125
Joined: Tue Aug 11, 2015 4:10 pm
Location: cat /dev/urandom > /dev/sda

Re: Graphing Wierdness

Post by weveland »

Ok I'll give it a shot after lunch and I'll let you know.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graphing Wierdness

Post by tgriep »

In your last post with the graphs, the bottom graph is graphing is the rounding errors for that check and not the actual data.
You can tell by the values are below 1.
The other graph is showing the correct data.

You may have to delete both the XML and RRD files to get this to work but is it doesn't you will have to create a graph template.
Take a look at this post for how to create the template.
https://support.nagios.com/forum/viewto ... 65#p146465
Be sure to check out our Knowledgebase for helpful articles and solutions!
weveland
Posts: 125
Joined: Tue Aug 11, 2015 4:10 pm
Location: cat /dev/urandom > /dev/sda

Re: Graphing Wierdness

Post by weveland »

Ok I wiped the rrd and xml files for those checks. Unfortunately they came back exactly like before (albeit missing historical data).

As for creating a template. I looked at the link and it looks to be creating a gauge for the data, however that's not what I need. So I'm not sure that solution will help me here.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graphing Wierdness

Post by tgriep »

The letter "c" on the output lets the system know that the data is a counter.
There is a formula that the data gets processed through and what you are seeing is rounding errors from that formula.
Creating the template and converting the output to a gauge, will remove the rounding errors and make the graph plot the actual data and not the rounding errors.
Take a look at this link which describes the different data types.
http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
weveland
Posts: 125
Joined: Tue Aug 11, 2015 4:10 pm
Location: cat /dev/urandom > /dev/sda

Re: Graphing Wierdness

Post by weveland »

Understood. But that still doesn't explain why it works just fine on the other server polling the same data.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graphing Wierdness

Post by tgriep »

To answer that question, we would have to see this log file.

Code: Select all

/usr/local/nagios/var/perfdata.log
In there, it should have the information needed to determine on why some graphs work and some don't.
Be sure to check out our Knowledgebase for helpful articles and solutions!
weveland
Posts: 125
Joined: Tue Aug 11, 2015 4:10 pm
Location: cat /dev/urandom > /dev/sda

Re: Graphing Wierdness

Post by weveland »

Here is the file. I'll send the password in a PM
perfdata.zip
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graphing Wierdness

Post by tgriep »

Thanks for the file. I only found information for server 01 and 02 and both of them have the RRD Datatype set as a COUNTER so those 2 servers should be having the graphing issues.
I know that setting the template to a gauge should fix it for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
weveland
Posts: 125
Joined: Tue Aug 11, 2015 4:10 pm
Location: cat /dev/urandom > /dev/sda

Re: Graphing Wierdness

Post by weveland »

So, same question as before. If they're both set to counter. Why do the graphs display so differently?
Locked