Nagios nrpe on Remote host
Alloo, Vincent
v-alloo at ti.com
Wed Sep 29 11:56:32 CEST 2004
You should use:
define command{
command_name check_nrpe
command_line /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$
}
Notice the -H ...
Regards,
Vincent Alloo
TI France Design Systems Operations Manager
Europe and Middle East IT Services
Texas Instruments France
E-Mail: v-alloo at ti.com
Phone: +33 4 93 22 26 97
Mobile: +33 6 82 13 00 80
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Atul Kamat
> Sent: Wednesday, September 29, 2004 7:57 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Nagios nrpe on Remote host
>
>
> Hi!
> I installed and configured nagios to monitor our servers and it took
me
> a whole day thanx to an error in the documentation.
> I installed a utility called NRPE so that i cud execute commands on
> remote machine.i setup xinetd and installed the plugins on the remote
> host as well.Below are the excerpts of the:::
>
>
> services.cfg file:
>
> define service{
> use generic-service ; Name
of service
> template to use
>
> host_name nyx
> service_description /dev/hda1 Free Space
> 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_nrpe!check_disk1
> }
>
>
>
> checkcommands.cfg file::
>
> define command{
> command_name check_nrpe
> command_line usr/local/nagios/libexec/check_nrpe
$HOSTADDRESS$
> -c $ARG1$
> }
>
>
> nrpe.cfg file on the remote machine::
> #command i want to execute
> command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10
-p
> /dev/hda1
>
> could neone tell me what`s going wrong.
> Nagios display the disk space data of the local machine rather than
the
> remote machine.
> Thanx,
> Warm Regards
>
> Atul Kamat
> Linux Network Engineer,
> World2Web Soft Technologies Private Ltd,
> 26, Koramangala Industrial Layout,
> Bangalore - 560095,
> INDIA
> Phone :98860 24705
> e-mail: atulk at world2web.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give
us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> 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
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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