Page 2 of 3
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 12:43 pm
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.
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 1:07 pm
by weveland
Ok I'll give it a shot after lunch and I'll let you know.
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 2:28 pm
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
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 3:20 pm
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.
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 3:43 pm
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
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 3:47 pm
by weveland
Understood. But that still doesn't explain why it works just fine on the other server polling the same data.
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 4:08 pm
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.
Re: Graphing Wierdness
Posted: Wed Dec 30, 2015 4:24 pm
by weveland
Here is the file. I'll send the password in a PM
perfdata.zip
Re: Graphing Wierdness
Posted: Mon Jan 04, 2016 9:36 am
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.
Re: Graphing Wierdness
Posted: Mon Jan 04, 2016 12:11 pm
by weveland
So, same question as before. If they're both set to counter. Why do the graphs display so differently?