Page 3 of 3

Re: Graphing Wierdness

Posted: Mon Jan 04, 2016 3:09 pm
by tgriep
Can you run the following on the XI server and post the output here?

Code: Select all

rrdtool -V
rrdtool info /usr/local/nagios/share/perfdata/XXXXX.srs.local/Directory_Server_Aggregate_Errors.rrd
Replace XXXXX with the hostname of the servers in question.

Re: Graphing Wierdness

Posted: Mon Jan 04, 2016 5:16 pm
by weveland
Same password as last time

Re: Graphing Wierdness

Posted: Tue Jan 05, 2016 10:44 am
by tgriep
The rrdtool info dump for the server 02 shows that the datatype is gauge but the perfdata.log says that is is a counter.
I am going to guess that the rrd file for server 02 was created a while back and and when it was created, it was created as the datatype of gauge and that is why the graph it correct.
Without having detailed debugging files for when the rrd files are created, it is just a guess as to why that happened.

Without creating a template for those checks, the data format will default to a counter which will not graph correctly.

Re: Graphing Wierdness

Posted: Tue Jan 05, 2016 10:48 am
by weveland
Thanks tgriep. I'll take a swing at it a little later today. I'll let you know if I run into any problems.

Re: Graphing Wierdness

Posted: Tue Jan 05, 2016 12:27 pm
by tgriep
No problem. Let us know if you need any help.

Re: Graphing Wierdness

Posted: Tue Jan 05, 2016 5:03 pm
by weveland
Ok so I recreated the checks using the wizard. This time I used a label called err_count and events. Now each graph is of type gauge.

However now I just need to figure out how to make a differential graph (Delta graph if you will). So I can see the change in count between monitoring points instead of the accumulated counter.

Re: Graphing Wierdness

Posted: Tue Jan 05, 2016 5:44 pm
by tgriep
I haven't tried graphing the data between the checks. You could template it and select a different data type and see if that is what you are looking for.
Take a look at this link the describes what the types are.
http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html

Re: Graphing Wierdness

Posted: Thu Jan 07, 2016 11:57 am
by weveland
Ok so I've broken down and created my own custom check script to retrieve the current value, and create a delta from a tempfile it creates. Yay! Have not created a template, but that's next on my list.

However pnp? is still doing something funny to these real values, I'm assuming it's to account for time differentials. So instead of just showing my direct value in integers, they always appear as a float. Any idea how to fix that?

Re: Graphing Wierdness

Posted: Thu Jan 07, 2016 4:48 pm
by tgriep
Creating a template can fix that for you. I included a youtube link that talks about what you may be looking for.
https://www.youtube.com/watch?v=kqA2KcpUFg4