Page 1 of 1

Question about creating Performance Graphs

Posted: Thu Feb 18, 2010 4:05 am
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?

Re: Question about creating Performance Graphs

Posted: Thu Feb 18, 2010 4:51 am
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?

Re: Question about creating Performance Graphs

Posted: Wed Feb 24, 2010 3:04 pm
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