[rrd-users] Graph Values.

Steve Shipway s.shipway at auckland.ac.nz
Wed Jan 15 22:54:21 CET 2014


(This is more of a PNP4Nagios question than an rrdtool question, but here
goes)

 

With PNP4Nagios, you can define custom templates for each check_command.  In
the share/templates directory, the templates are named xxx.php for a
check_command xxx.

 

These templates are PHP code that defines the RRDTool command line used to
generate the graph images.  So, you can make the graphs do anything RRDTool
can do¡­  since your existing graph looks different from the default, I¡¯m
guessing you already have a customised template.

 

To set the graph Y-axis lower bound, you can use --lower-limit to set the
min value (default is 0) and optionally --rigid to make this fixed even if
the graph value goes below the lower value (this will also affect the upper
limit option as well).

 

The code you¡¯ll need in there is something similar to:

 

$opt[1] .= ¡® ¨Clower-limit 10¡¯

 

But this will depend on how you¡¯re keying it, and if the values are in Gb
or in b

 

Steve

 

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 923 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail : ´òÓ¡±¾Óʼþ£¬
½«¼õÉÙÒ»¿ÃÊ÷´æ»îµÄ»ú»á

 

From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of Jonathan Osborne
Sent: Thursday, 16 January 2014 10:04 a.m.
To: rrd-users at lists.oetiker.ch
Subject: [rrd-users] Graph Values.

 

Folks,

 

I am graphing Disk Usage over time using PNP4Nagios.  Is there a way to
change the parameters of the graph so it shows a different minimum number
other than zero?  

Here is an example of one of the graphs:



 

Can this be changed so the range in the graph is not 0 ¨C 20, but 10 ¨C 20?


 

Also, how do you change the data source type?  If someone could help with
the syntax of the commands, that would be great. 

 

Thanks a lot!

 

Jon

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20140115/cc07b247/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 11640 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20140115/cc07b247/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5900 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20140115/cc07b247/attachment-0001.bin 


More information about the rrd-users mailing list