Unable to monitor remote hosts with nrpe

Roger Dierauer thurgroup at gmail.com
Sun Apr 6 22:11:43 CEST 2008


hi
you have to configure (normaly) /usr/local/nagios/etc/nrpe.cfg file... there
is the config for the check commands

kind regards Roger


2008/4/4, Rodrick Brown <rbrown at ballistasec.com>:
>
>  I recently built a nagios 3.0 server and having a bit of problem getting
> remote hosts monitored correctly with nrpe.
>
>
>
> NRPE seems to be configured correctly on the local and remote host.
>
> [root at nagiosbox objects]# /usr/local/nagios/libexec/check_nrpe -H
> nycplx01a -c check_load -t 30
>
> OK - load average: 0.08, 0.02, 0.01|load1=0.080;15.000;30.000;0;
> load5=0.020;10.000;25.000;0; load15=0.010;5.000;20.000;0;
>
>
>
> I added the following entries to nagios.cfg
>
> cfg_file=/usr/local/nagios/etc/objects/linuxhosts.cfg
>
> cfg_file=/usr/local/nagios/etc/objects/ballista-host.cfg
>
>
>
> I created a template host definition file.
>
> --- ballista-host.cfg ---
>
> define host {
>
>         name                             ballista-host
>
>         use                                 linux-server
>
>         check_period            24x7
>
>         retry_interval          5
>
>         max_check_attempts      10
>
>         check_command           check-host-alive
>
>         notification_period     24x7
>
>         notification_interval   30
>
>         notification_options    d,r
>
>         contact_groups          admins
>
>         register                0
>
> }
>
>
>
> Here is the definition file I'm using to define my hosts.
>
> --- linux-hosts.cfg ---
>
>
>
> [root at nyadmlx01 objects]# cat linuxhosts.cfg
>
> define host {
>
>         use                     ballista-host
>
>         host_name               nycplx01a
>
>         alias                   nycplx01a-eth1
>
>         address                 10.187.11.101
>
>         check_command           check-host-alive
>
>         max_check_attempts      10
>
>         notification_interval   120
>
>         notification_period     24x7
>
>         notification_options    d,u,r
>
> }
>
>
>
> define host {
>
>         use                                                 ballista-host
>
>         host_name                                 nycplx01b
>
>         alias                                               nycplx01b-eth1
>
>         address                                        10.187.11.201
>
>         check_command                     check-host-alive
>
>         max_check_attempts            10
>
>         notification_interval               120
>
>         notification_period                 24x7
>
>         notification_options               d,u,r
>
> }
>
>
>
> define hostgroup {
>
>         hostgroup_name     Ballista_ECN
>
>         alias                               Ballista_ECN Linux Servers ;
> Long name of the group
>
>         members                    nycplx01a,nycplx01b
>
> }
>
>
>
> define service {
>
>         use
> generic-service
>
>         host_name                                 nycplx01a,nycplx01b
>
>         service_description                CPU Load
>
>         check_command                     check_nrpe!check_load  ß No
> matter what check_nrpe I use here I get configuration problems
>
> }
>
>
>
> Checking services...
>
> Error: Service check command 'check_nrpe' specified in service 'CPU Load'
> for host 'nycplx01a' not defined anywhere!
>
> Error: Service check command 'check_nrpe' specified in service 'CPU Load'
> for host 'nycplx01b' not defined anywhere!
>
>         Checked 10 services.
>
>
>
> If anyone could help me with getting remote checks to work using nrpe I
> would greatly appricate it thanks.
>
>
>
> ---
>
> Rodrick R. Brown
>
> Director of Systems Engineering
>
> Ballista Securities LLC
>
> 120 Wall St. Suite 2400
>
> C: 347 702 0012 | O: 646 307 4709
>
> http://www.ballistasec.com
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> 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
>



-- 
ThurGroup Informatik Dierauer

Roger Dierauer
eidg. Informatiker mit FA
VMware Certified Professional
Egelsee Strasse 20a
9535 Wilen bei Wil

Mobile: +41 79 216 34 86
Fax:    +41 71 911 81 80

info at thurgroup.ch
http://thurgroup.ch

==> Online-Shop mit IT - Bedarf zu fairen Preisen und schneller Lieferung
http://shop.thurgroup.ch
<==
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080406/4eacb79c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
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