[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing Software support and information 2009-02-16T09:55:43+13:00 http://steveshipway.org/forum/feed.php?f=35&t=1645 2009-02-16T09:55:43+13:00 2009-02-16T09:55:43+13:00 http://steveshipway.org/forum/viewtopic.php?t=1645&p=8623#p8623 <![CDATA[Re: mrtg_nrpe : MRTG plugin to query Nagios NRPE agent]]>
So, if your mrtg-nrpe check is returning the data in Mb, then add '* 1024000' to the end of the Target definition, which will mean that the value is multipled by 1024000 before storing - IE, it will be stored in bytes.

This means that MaxBytes will of course need to be 2048000000 if you want 2GB.

Then, you will not need to set ShortLegend, or the fixunit or kMG options as the multipliers will all be done correctly (you may not have realised yet what will happen as the values fall below 1)

Another nice trick is that, if your plugin is returning a 'used' and a 'size' value, you can use 'dorelpercent' to have MRTG graph the first as a percentage of the second - IE, percentage used.

Statistics: Posted by stevesh — Mon Feb 16, 2009 9:55 am


]]>
2009-02-14T03:08:25+13:00 2009-02-14T03:08:25+13:00 http://steveshipway.org/forum/viewtopic.php?t=1645&p=8622#p8622 <![CDATA[Re: mrtg_nrpe : MRTG plugin to query Nagios NRPE agent]]>
Setting 'MaxBytes' to the size of the drive means I even get the percentage correct.

Target[cbrintsvr18.cbr.ugs.com.c]: `/usr/local/bin/mrtg-nrpe -H 134.244.155.8 -M -c CheckDriveSize -a "Drive=C:\\" -a ShowAll -a "MaxWarn=80%" -a "MaxCrit=90%"`
Options[cbrintsvr18.cbr.ugs.com.c]: gauge,growright,noo
MaxBytes[cbrintsvr18.cbr.ugs.com.c]: 2047
Title[cbrintsvr18.cbr.ugs.com.c]: C drive usage
YLegend[cbrintsvr18.cbr.ugs.com.c]: C drive
ShortLegend[cbrintsvr18.cbr.ugs.com.c]: Gb
LegendI[cbrintsvr18.cbr.ugs.com.c]: Used

Many thanks for your help
David

Statistics: Posted by barhamd — Sat Feb 14, 2009 3:08 am


]]>
2009-02-13T10:04:17+13:00 2009-02-13T10:04:17+13:00 http://steveshipway.org/forum/viewtopic.php?t=1645&p=8620#p8620 <![CDATA[Re: mrtg_nrpe : MRTG plugin to query Nagios NRPE agent]]> Statistics: Posted by stevesh — Fri Feb 13, 2009 10:04 am


]]>
2009-02-13T06:37:53+13:00 2009-02-13T06:37:53+13:00 http://steveshipway.org/forum/viewtopic.php?t=1645&p=8619#p8619 <![CDATA[Re: mrtg_nrpe : MRTG plugin to query Nagios NRPE agent]]> Statistics: Posted by barhamd — Fri Feb 13, 2009 6:37 am


]]>
2008-10-21T17:24:14+13:00 2008-10-21T17:24:14+13:00 http://steveshipway.org/forum/viewtopic.php?t=1645&p=8306#p8306 <![CDATA[Re: mrtg_nrpe : MRTG plugin to query Nagios NRPE agent]]> Statistics: Posted by stevesh — Tue Oct 21, 2008 5:24 pm


]]>
2008-09-29T16:43:52+13:00 2008-09-29T16:43:52+13:00 http://steveshipway.org/forum/viewtopic.php?t=1645&p=8244#p8244 <![CDATA[mrtg_nrpe : MRTG plugin to query Nagios NRPE agent]]> Statistics: Posted by stevesh — Mon Sep 29, 2008 4:43 pm


]]>