Page 1 of 1
Nagios graphing - line vs area
Posted: Tue Mar 19, 2013 3:33 pm
by yaanatech
Hi All,
I have been writing my scripts graph data with the following format;
Code: Select all
echo "Status OK: Usage is $INT2 with $INT2 remaining.| Usage=$INT1;Remaining=$INT2"
[/b]
Is there an setting anywhere that would set the graph to be a line instead of area?
Gavin
Re: Nagios graphing - line vs area
Posted: Tue Mar 19, 2013 4:23 pm
by abrist
In what way? The graphs are all lines, pnp4nagios just fills everything from 0 to the metric line with color. Do you not want the colored body of the graphs?
Re: Nagios graphing - line vs area
Posted: Tue Mar 19, 2013 5:54 pm
by yaanatech
Yeah - I am looking to have line graphs and not area graphs.
Re: Nagios graphing - line vs area
Posted: Wed Mar 20, 2013 9:05 am
by scottwilkerson
You can create your own graph templates for the plugins. Look at the documentation here
http://docs.pnp4nagios.org/pnp-0.4/start under "PNP Templates"
The templates can bu uploaded into XI under Admin -> Graph Templates
Re: Nagios graphing - line vs area
Posted: Thu Mar 21, 2013 4:00 pm
by yaanatech
I don't have much experience with the graph templates, the default.php mentions both area and line - how would I get it to just display the line? Also, does a new graph template need to be the name of the command being ran, in ordered to be recognized?
Re: Nagios graphing - line vs area
Posted: Thu Mar 21, 2013 7:07 pm
by scottwilkerson
Generally, where you see something like
Code: Select all
$def[1] .= "AREA:var3#FF0000:\"Load 15\" " ;
you can change it to just a line if you put
Code: Select all
$def[1] .= "LINE:var3#FF0000:\"Load 15\" " ;