can't get host to display in Host Detail panel

Jonathan Wiggins jwiggins at salon.com
Wed Oct 13 01:04:55 CEST 2010


On Oct 12, 2010, at 12:28 AM, diego.roccia at gmail.com wrote:

> If you run nrpe via xinetd, the standalone service has to be stoppedm if it's not, xinetd can't bind the port.
> Regarding the plugin location, you can change it in nrpe.cfg
> 
> Sent from my BlackBerry® wireless device
> 

I followed this suggestion, shut down xinetd, ran nrpe as a stand-alone, also added the nagios server in hosts.allow, and got good results (although no host in control panel)


able to run remote service checks:

bash-3.1# !1021
/usr/local/nagios/libexec/check_nrpe -H 10.0.100.139 -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0
bash-3.1# !1013
/usr/local/nagios/libexec/check_nrpe -H 10.0.100.138 -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0

able to telnet to 5666:

bash-3.1# telnet 10.0.100.138 5666
Trying 10.0.100.138...
Connected to 10.0.100.138 (10.0.100.138).
Escape character is '^]'.

checked the host.cfg file for this server and another server ( that is showing) to compare.. everything looks correct:

{not showing}
define host{
	use linux-server ; Inherit default values from a template
        host_name web02 ; The name we're giving to this server
        alias web02 ; A longer name for the server
        address 10.0.100.139 ; IP address of the server
}

define service{
        use generic-service
        host_name                       web02
        service_description             Home Page
        check_command                   check_http!ww2
}

{showing}

define host{
	use linux-server ; Inherit default values from a template
        host_name web03 ; The name we're giving to this server
        alias web03 ; A longer name for the server
        address 10.0.100.144 ; IP address of the server
}
define service{
        use generic-service
        host_name                       web03
        service_description             Home Page
        check_command                   check_http!ww2
}

tail /var/log/messages: (this part looks good)

Oct 12 15:50:33 sacdcweb02 nrpe[15883]: Starting up daemon
Oct 12 15:50:33 sacdcweb02 nrpe[15883]: Listening for connections on port 5666 
Oct 12 15:50:33 sacdcweb02 nrpe[15883]: Allowing connections from: 127.0.0.1,10.0.100.130

but then I see this also in the logs

nrpe[11817]: Unable to open config file '/usr/local/nagios/etc/nrpe.cfg' for reading

when I do a "locate nrpe.cfg", its only found in one location:  /etc/nagios/nrpe.cfg   --- looking at that file below- looks normal to me, and where is the application pulling this other nrpe.cfg location from, and how to change it? ((Or does that really not matter in this issue - seems like it would - and I need to focus elsewhere>?))



log_facility=daemon


pid_file=/var/run/nrpe/nrpe.pid


server_port=5666


#server_address=127.0.0.1

 
nrpe_user=nagios

nrpe_group=nagios  


allowed_hosts=127.0.0.1,10.0.100.130

dont_blame_nrpe=0

# command_prefix=/usr/bin/sudo

  
debug=0 --> 1


command_timeout=60

connection_timeout=300


#allow_weak_random_seed=1
 
#include=<somefile.cfg>


include_dir=/etc/nrpe.d/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101012/5efc4ad3/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
-------------- 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