can't get host to display in Host Detail panel

Jonathan Wiggins jwiggins at salon.com
Wed Sep 22 03:09:30 CEST 2010


# The following examples use hardcoded command arguments...

command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200
 

# The following examples allow user-supplied arguments and can
# only be used if the NRPE daemon was compiled with support for
# command arguments *AND* the dont_blame_nrpe directive in this
# config file is set to '1'.  This poses a potential security risk, so
# make sure you read the SECURITY file before doing this.

#command[check_users]=/usr/lib64/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
#command[check_load]=/usr/lib64/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
#command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
#command[check_procs]=/usr/lib64/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$



that's the entry in the .cfg file, if I run this for example, you can see it does give me output:
/usr/lib64/nagios/plugins/check_nrpe -H localhost
NRPE v2.12

but other than that, I just run the command as below?
/usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_users    (I'm confused on this part - does this particular "check_users" need this at the end? " -w 5 -c 10"   when that's done, I get Unable To read output )

i've checked permissions also on the /usr/lib64/nagios/plugins/* directories and only the ../nagios/ directory has nagios.nagios as the owner, the rest have root.root  -- i've seen permissions listed in other forums as the possible culprit, but my permissions seem right?  I've only got "nagios" listed as the nrpe_user and the nrpe_group  in the nrpe.cfg file -- do I need to add "nrpe" and/or "root" to this?

On Sep 21, 2010, at 5:21 PM, Stuart Browne wrote:

> Ok, what are those definitions and what output do they give when you run them on the remote machine manually?
>  
> From: Jonathan Wiggins [mailto:jwiggins at salon.com] 
> Sent: Wednesday, 22 September 2010 09:55
> To: Nagios Users List
> Subject: Re: [Nagios-users] can't get host to display in Host Detail panel
>  
> Hi Stuart
>  
> That line does exist, along with others, in the nrpe.cfg file
>  
> I run these, for example, and both give the same output:
>  
>  /usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_users
> NRPE: Unable to read output
>  
> /usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_load
> NRPE: Unable to read output
>  
> do I actually need to supply arguments at the end of the check_nrpe command? e.g., -w 5,4,3   (i've tried doing so, but to no avail)
> On Sep 21, 2010, at 3:57 PM, Stuart Browne wrote:
> 
> 
> what’s the command line that is called from nrpe when it’s asked for a ‘check_load’ ?  There should be a line similar to this in there:
>  
> command[check_load]=/usr/lib64/nagios/plugins/check_load -w 5,4,3 -c 8,6,4
>  
> Does this exist in the nrpe.cfg?  If you run the command from your configuration as the nrpe_user, does it execute and return a value properly?
>  
> From: Jonathan Wiggins [mailto:jwiggins at salon.com] 
> Sent: Wednesday, 22 September 2010 06:36
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] can't get host to display in Host Detail panel
>  
> I have 3 web servers, and although they at one time all showed up successfully, now one of them does not.
>  
> i have verified on the web server in question that nrpe is running and listening on tcp/5666:
>  
> netstat -ntlp | grep nrpe
> tcp        0      0 0.0.0.0:5666                0.0.0.0:*                   LISTEN      13920/nrpe
>  
> /etc/init.d/nrpe status
> nrpe (pid 13920) is running...
>  
> I've checked the nrpe.cfg on another server that is showing up, and compared b/t the two, and they look identical.
>  
> i've got an IPTables rule that allows connections on the web server:
>  
> -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 5666 -j ACCEPT
>  
> One of the things that doesn't test right though is the check_nrpe command:
>  
>  /usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_load
> NRPE: Unable to read output
>  
> but tail /var/log/messages gives me something interesting, perhaps?
>  
> Sep 21 13:30:08 mywebserver kernel: Removing netfilter NETLINK layer.
> Sep 21 13:30:09 mywebserver kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
> Sep 21 13:30:10 mywebserver kernel: Netfilter messages via NETLINK v0.30.
> Sep 21 13:30:10 mywebserver  kernel: ip_conntrack version 2.4 (8192 buckets, 65536 max) - 304 bytes per conntrack
>  
> On the nagios server, i've checked the mywebserver.cfg file and it looks legit and cross-compared with the two others, it seems identical (except for IP of course):
>  
> # Host definition
> # Modified 81610
>  
> define host{
>           use linux-server ; Inherit default values from a template
>         host_name mywebserver ; The name we're giving to this server
>         alias mywebserver ; A longer name for the server
>         address 10.0.100.139 ; IP address of the server
> }
>  
> define service{
>         use generic-service
>         host_name                       mywebserver
>         service_description             Home Page
>         check_command                   check_http!ww2
> }
>  
>  
>  
> Any feedback, suggestions, thoughts, etc.. is much appreciated in advance
>  
> JW
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
> 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
>  
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100921/fa34a9e4/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
-------------- 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