Problems with nrpe and nsclient

Frank Naumann frank at naumann-net.org
Fri Jan 23 11:45:09 CET 2004


Hello,
i have a strange problem with my nagios installation: I am
monitoring several Servers (Linux/Win2k) throug nagios. Some
configured services through nrpe are working, others not. My problem
is: running check_nrpe from the command line works for the same
tests, nagios fails on.

check_nrpe -H mailgate -c check_amavis
TCP OK -   0.001 second response time on port 10025|time=  0.001

Running the same command within nagios results in the following
message:

NRPE: Command 'check_amavis' not defined

checkcommands.cfg:
define command{
        command_name    check_nrpe_amavis
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c
check_amavis
        }

services.cfg:
define service{
          use                             generic-service         ;
          host_name                       mailgate
          service_description             NRPE_amavis
          is_volatile                     0
          check_period                    24x7
          max_check_attempts              300
          normal_check_interval           5
          retry_check_interval            1
          contact_groups                  admins
          notification_interval           120
          notification_period             24x7
          notification_options            c,r
          check_command                   check_nrpe_amavis
	  }

nrpe.cfg (on monitored host):
command[check_amavis]=/usr/lib/nagios/plugins/check_tcp -H localhost
-p 10025

Also i have a similar problem monitoring a Windows2000 Server with
check_nt/nsclient.

Commandline:
check_nt -H webrel3 -p 1248 -v PROCSTATE -d SHOWALL -l wsw.exe
-> wsw.exe: Running

Running the same command from nagios results in the following error:
Connection refused by host

checkcommands.cfg:
define command{
        command_name    check_npclient_wsw
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
PROCSTATE -d SHOWALL -l wsw.exe
        }

services.cfg:
define service{
         use                             generic-service         ;
         host_name                       webrel3
         service_description             WSW_POLICY
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           5
         retry_check_interval            1
         contact_groups                  admins
         notification_interval           120
         notification_period             24x7
         notification_options            c,r
         check_command                   check_npclient_wsw
         }

I am running nagios 1.1 from SuSE9 distribution.

What am i doing wrong?

Greetins,
Frank 

-- 
cd mutt-source;
./configure --enable-full-quote --with-reverse-quote --set-user-iq=0 \
--set-client-id=outlook --enable-netscape-vcards \
--disable-signature-mark --disable-realname


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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