check_rrd plugin

Steve Tatlow statlow at gmail.com
Mon Jan 22 13:48:35 CET 2007


Hi,

I am trying to monitor thresholds in certain RRDs. I have added my nagios
command group to the cacti rra directory, this has allowed me to run the
./check_rrd.pl plugin as user statlow. However, nagios is reporting no
output in the web interface. I was wondering if anyone could point me in the
right direction?

statlow at t2:/usr/local/nagios/libexec$ ./check_rrd.pl -F
/var/lib/cacti/rra/london_3_cpu1_167.rrd -w 20 -c 50 -a AVERAGE -v 3
OK Average cpu5 = 1

Permissions of cacti rra directory:

drwxrwx---  2 root ncmd 4096 2007-01-22 09:56 rra
ncmd group = statlow,nagios,www-data

#'check_rrd' command definition
define command{
        command_name    check_rrd.pl
        command_line    $USER1$/check_rrd.pl -F $ARG1$ -w $ARG2$ -c $ARG3$
-a $ARG4$ -v $ARG5$
        }

-rwxr-xr-x  1 root   root     7758 2007-01-12 14:02 check_rrd.pl

define service{
        use                             generic-service         ; Name of
service template to use
        host_name                       London_1
        service_description             RRD
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  Administrators
        notification_interval           120
        notification_period             none
        notification_options            c,r
        check_command
check_rrd.pl!/var/lib/cacti/rra/london_3_cpu1_167.rrd!20!50!AVERAGE!3

nagios web:
      London_1<http://t2.toranet.local/nagios/cgi-bin/extinfo.cgi?type=1&host=London_1>
RRD<http://t2.toranet.local/nagios/cgi-bin/extinfo.cgi?type=2&host=London_1&service=RRD>
CRITICAL 22-01-2007 12:42:25 0d 0h 44m 8s 3/3 (No output!)

Thanks in advance.
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070122/438d6c44/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
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