newbie (check_nrpe) check_swap on a remote ssytem

Narayanasamy, Sundar sundar.narayanasamy at medtronic.com
Thu Mar 11 17:09:21 CET 2004


Thanks lot. Debugging did work. 'swap' wasn't in the path for the client. Thanks very much.

Sundar

-----Original Message-----
From: Marc Powell [mailto:marc at ena.com]
Sent: Thursday, March 11, 2004 9:03 AM
To: Narayanasamy, Sundar; verdon at cict.fr;
nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] newbie (check_nrpe) check_swap on a remote
ssytem


On Thursday, March 11, 2004 9:30 AM, Narayanasamy, Sundar shared with
us:

> Thank you. It did not work still. Any other suggestion.
> 
> Sundar
> 
> -----Original Message-----
> From: carole verdon [mailto:verdon at cict.fr]
> Sent: Thursday, March 11, 2004 2:00 AM
> To: Narayanasamy, Sundar
> Subject: Re: [Nagios-users] newbie (check_nrpe) check_swap on a
> remote ssytem 
> 
> 
> I think you would must to try the changes follow:
> 
> checkcommands.cfg
> --------------------
> 'check_nrpe' command definition
> define command{
>         command_name    check_nrpe
>         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
>         }
> 
> services.cfg
> ------------
> # Service definition
> define service{
>         use                             generic-service         ;
> Name of service template to use 
> 
>         host_name                       mordac
>         service_description             swap Space
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           5
>         retry_check_interval            1
>         contact_groups                  unix-admins
>         notification_interval           120
>         notification_period             24x7
>         notification_options            w,u,c,r
>         check_command                   check_nrpe!check_swap
>        }

It seems to me that you need to try stepping through each stage of the
process and find out what part is failing. It looks pretty clear to me
that one or more steps are not executing as you think they are. I would

1) run 'check_nrpe -H <address used in host definition> -c check_swap'
on your Nagios server as the nagios user and see if there are any error
messages displayed.
2) run the check_swap command as it is defined in nrpe.cfg on the remote
machine as the user that nrpe runs as and see if there are any error
messages displayed.
3) verify that your Nagios server is defined as an allowed_host in
nrpe.cfg (by IP, not hostname)
4) enable debugging in nrpe.cfg and try 1) again.

One or more of those should point you in the right direction. You don't
say whether nrpe is running out of (x)inetd or as a daemon. If it's run
out of (x)inetd, make sure there are no TCP wrapper restrictions that
are preventing the connection from the Nagios machine.

--
Marc



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
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