Nagios graphing - line vs area

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Nagios graphing - line vs area

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios graphing - line vs area

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: Nagios graphing - line vs area

Post by yaanatech »

Yeah - I am looking to have line graphs and not area graphs.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios graphing - line vs area

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: Nagios graphing - line vs area

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios graphing - line vs area

Post 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\" " ;
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked