Question about creating Performance Graphs

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

Question about creating Performance Graphs

Post by Box293 »

How does one create a performance graph?

From what I understand it's all about what is returned by the check back to nagios. See this topic http://support.nagios.com/forum/viewtop ... graph#p263
Admin said:
When on the detail page, click the "Advanced Tab". If the performance data line is empty, there isn't anything that can be used to generate a performance graph.
I've tried duplicating a service and changing the check command but I don't get a performance graph.

For example, this known service "'Paging File usage" check seems to generate a graph.

So I duplicated the service and customised it so it looked at a different counter and gave it differernt -w and -c values. However no graph is being generated. The particulars are:
$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ $ARG3$
$ARG1$ = COUNTER
$ARG2$ = -l "\\Memory\\Committed Bytes","Committed Bytes is %.f " -w 1171330000.0 -c 1491330000.0

So looking at the original service that generates a graph, I look at the performance data line:
'Paging File usage is %.2f %%'=53.080000%;70.000000;90.000000;

Then I look at my service and it's performance data line is:
'Committed Bytes is %.f '=1153570000.000000%;1171330000.000000;1491330000.000000;

So what am I doing wrong here, what else do I need to do for performance graphs to appear?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Question about creating Performance Graphs

Post by Box293 »

Actually, now that I've typed all of this and then left it for a while a performance graph has appeared.

Success !!!

So then my next question ... are you able to still generate a graph without the -w -c, for example:

$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ $ARG3$
$ARG1$ = COUNTER
$ARG2$ = -l "\\Memory\\Committed Bytes","Committed Bytes is %.f "

Or does nagios need these additional values to plot the graph?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Question about creating Performance Graphs

Post by mmestnik »

You could effectively disable them, if you didn't want these to ever alert and just graph.

I think you would have to pass the correct values for what you are monitoring -c MAX.MIN -w MAX.MIN
Locked