check_snmp : console use works but service not. rtfm and stfw doesn't help

Armin Irger irger at fh-rosenheim.de
Thu Feb 13 13:47:38 CET 2003


Hi,

using debian 3.0r1, net-snmp 4.2.3, self-compiled version of nagios-1.0.
I can use the command on the console. Like this.

./check_snmp -H 141.60.50.9 -C public -o interfaces.ifNumber.0
SNMP OK - 2

----------------------------------------
The checkcommand definition looks like.

define command{
        command_name    check_snmp
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o
$ARG2$
}

------------------------
The Service looks like.

define service{
        use                             generic-service
        host_name                       comm.rz.fh-rosenheim.de
        service_description             Interface_Numbers
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  linux-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
	check_command			check_snmp!public!interface.ifNumber.0
}

But nagios said :

SERVICE NOTIFICATION:
nagios;comm.rz.fh-rosenheim.de;Interface_Numbers;CRITICAL;notify-by-email;Connection refused by host

Nagios runs under user nagios group nagios. I run the console use as
user nagios.

Greetings.

-- 
Wundere dich nicht daß du nicht ankommst, 
wenn du nicht weißt wo du hin willst.

====================================================================
Fachhochschule Rosenheim
Armin Irger
Hochschulstr. 1
D-83024 Rosenheim
Tel. +498031 805-532
Fax. +498041 805-519
====================================================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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