plugin problems....

Brian Kosick briank at nacs.net
Fri Mar 7 00:13:21 CET 2003


Hi all,
    I'm having some difficulty with two plugins....  specifically the 
check_ifstatus, and check_rpc

When I run them from the command line as nagios, they work great

sh-2.05a$ ./check_ifstatus -H XXX.XXX.XXX.XXX -C public
Use of uninitialized value in sprintf at ./check_ifstatus line 194.
CRITICAL: host 'XXX.XXX.XXX.XXX', interfaces up: 30, down: 1, dormant: 
0<BR>DS3 Controller B -- Standby: down -> <BR>

sh-2.05a$ ./check_rpc -H XXX.XXX.XXX.XXX -C nfs
OK: RPC program nfs version 2 version 3 udp running

when I try to run them within nagios, they show up as critical "No Output"

here's my relevant checkcommands.cfg

# check_nfs
define command{
        command_name    check_nfs
        command_line    $USER1$/check_rpc -H $HOSTADDRESS$ -C nfs
        }

# snmp_intstatus
define command{
        command_name    snmp_intstatus
        command_line    $USER1$/check_ifstatus -H $HOSTADDRESS$ -C $ARG1$
        }

Here's my services.cfg
# Service definition
define service{
        use                             generic-service         ; Name 
of service template to use

        host_name                       ginger
        service_description             NFS
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           2
        retry_check_interval            1
        contact_groups                  linux-admins
        notification_interval           240
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_nfs
        }

# Service definition
define service{
        use                             generic-service         ; Name 
of service template to use

        host_name                       cac-mux
        service_description             Interface Status
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  switch-admins
        notification_interval           240
        notification_period             24x7
        notification_options            c,r
        check_command                   snmp_intstatus!public
        }

Any ideas as to why they can run fine from the command line as the 
nagios user, but not produce any output?
the check_ifstatus takes around 5-6 seconds to return, and the check_rpc 
1-2 seconds.
Any help would be greatly appreciated.....

Thanks,
Brian Kosick




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
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