Check_mrtgtraf

Steffen Knauf Steffen.Knauf at liga01.de
Thu Jun 26 11:15:00 CEST 2008


> 
> * What I don´t understand is that when I use:*
> 
> ./check_mrtgtraf -F /var/www/mrtg/memswap.log -a MAX
> 
> * I get this answer:*
> 
> Traffic CRITICAL - Max. In = 217.0 B/s, Max. Out = 0.0 
> B/s|in=217.000000B/s;;;0.000000
> in=0.000000B/s;;;0.000000
> 
> * So, How do I translate this to the correct syntax in check_mrtgtraf! ...*
> 

I think there is a small bug in the plugin. The second "in" is wrong.
It's out:
in=217.000000B/s;;;0.000000 out=0.000000B/s;;;0.000000

A user in a german forum make the revised sourcecode available:

http://www.nagios-portal.org/wbb/index.php?page=Thread&postID=75921&highlight=check_mrtgtraf#post75921


command_line    $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c 
$ARG4$ -e $ARG5$

is the same as:

/usr/local/nagios/libexec/check_mrtgtraf -F 10.1.1.1_4.log -a MAX  -w 
50000000,50000000 -c 10000000,10000000 -e 5

But this output is only meaningful if you use grapher ,ngraph per 
example. With the correct regex in the ngraph definition you have a 
wonderful graph ;)

greets

Steffen

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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