Antwort: RE: MRTG graphs problem - measurement units not taken into consideration
Jim Avery
jim at jimavery.me.uk
Wed Jun 29 14:43:37 CEST 2011
On 29 June 2011 13:23, <Radu.Popa at technomatic.de> wrote:
> After adding the -r option it works like a charm!
>
> Now in pnp4nagios I can see both values on the same graph: bytes in and
> bytes out. I see them as two thin lines. Any way to make the lines thicker
> and change their colour?
Well done.
Yes, you can create a custom template.
Take a look under /usr/local/pnp4nagios/share/templates.dist and find
the file named check_snmp_int.php . Copy it to the directory
/usr/local/pnp4nagios/share/templates and then edit it to get the
wider line.
For example the line which reads:
$def[1] .= "LINE1:var1#003300:\"in \" " ;
Change it to read:
$def[1] .= "LINE3:var1#003300:\"in \" " ;
You will find documentation on how the LINE instruction works at:
http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html
and some general help on PNP templates at:
http://docs.pnp4nagios.org/pnp-0.6/tpl
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list