Re: [Nagios-users] can't get host to display in Host Detail panel

2010-10-14 Thread Diego Roccia
Actually the init script is not ran if you're running it via xinetd.
you should look for server_args in /etc/xinet.d/nrpe (usually this is
the file name)

Diego

On Thu, Oct 14, 2010 at 12:53 PM, Assaf Flatto  wrote:
> On 13/10/10 00:04, Jonathan Wiggins wrote:
>
> 
>
> the place to look is in the nrpe init script , usually found in the
> /etc/init.d directory
>
> you are looking for the NrpeCfg parameter .
>
> Make sure to point it to the nrpe.cfg file you found.
>
> Assaf
>
> 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=
>
> include_dir=/etc/nrpe.d/
>
> --
> Never,Ever Cut A Deal With a Dragon
>
>
> Next year I will be doing the London to Paris bike ride to
> raise money for the DogTrust (www.dogstrust.co.uk) .
> Please Sponsor me at http://www.justgiving.com/Assaf-Flatto
>
> --
> 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
> ___
> Nagios-users mailing list
> Nagios-users@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
>



-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
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
___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-10-14 Thread Assaf Flatto

 On 13/10/10 00:04, Jonathan Wiggins wrote:

**


the place to look is in the nrpe init script , usually found in the 
/etc/init.d directory


you are looking for the NrpeCfg parameter .

Make sure to point it to the nrpe.cfg file you found.

Assaf

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=


include_dir=/etc/nrpe.d/



--
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

--
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-10-12 Thread Jonathan Wiggins

On Oct 12, 2010, at 12:28 AM, diego.roc...@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=


include_dir=/etc/nrpe.d/

--
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-10-12 Thread diego . roccia
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

-Original Message-
From: Jonathan Wiggins 
Date: Mon, 11 Oct 2010 19:15:06 
To: Nagios Users List
Reply-To: Nagios Users List 
Subject: Re: [Nagios-users] can't get host to display in Host Detail panel

--
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
--
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] can't get host to display in Host Detail panel

2010-10-11 Thread Jonathan Wiggins

On Sep 29, 2010, at 5:47 AM, Assaf Flatto wrote:

> 
>> Assaf - thanks for your time and patience outlining those steps:
>> 
> 
> That is what the list is about .
> 
>> I was able to at least get the connectivity between Nagios server and the 
>> monitored host to show a valid connection:
>> 
>> /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
>> 
>> there were a few things wrong on the monitoring server, or at least what I 
>> changed:
>> 
>> * changed ownership of nrpe.cfg to nagios.nagios
>> * modified xinetd.d/nrpe to show Nagios server IP as allowed connection
>> 
>> I struggled with a few other things, and connection attempts, before I 
>> realized I hadn't restarted the nrpe service after modifying the 
>> xinetd.d/nrpe file.
>> 
>> I did notice that the plugin location from another server is different than 
>> the one that is missing:
>> /usr/lib64/nagios/plugins vs /usr/local/nagios/libexec/  (guess this has 
>> something to do with the way it was compiled)
> 
> NRPE by default is placing the path as the lib64  in the nrpe.cfg sample file 
> , while all other  packages use the local path - this is something that you 
> get used to "ignore-modify " with time .
>> Guess I have to wait now a few mins before the host shows in the panel? as 
>> its not showing now even after 10 mins.  Restarting xinetd shows this in 
>> /var/log/messages:
>> 
>> xinetd[22518]: bind failed (Address already in use (errno = 98)). service = 
>> nrpe (is this a bug or anything in xinetd? I saw that referenced on a few 
>> other forums)
>> 
>> nrpe service is running and listening though on 5666
> I have always run nrpe as a stand alone daemon , never with xinetd , to have 
> better control on what is running and how it is run .
> 
> From what i remember about xinetd , it has an internal "keep-alive" mechanism 
> that waits till all connections are terminated before it releases a port 
> (again , i may be wrong ) you  need to stop it and wait till the port is no 
> longer shown as active , and then restart it .
> 
> Or move to a standalone daemon - that will allow you to control the nrpe 
> separately from any other service and  better debug the issue.
> 
> 
> 



I had to take a break from this project, but now I'm circling back to it.

I am able to connect from the nagios server to the monitored node (this server 
has (2) IP's as it's eth0 has an IP alias bound to it, hence checking both 
IP's):

bash-3.1# /usr/local/nagios/libexec/check_nrpe -H 10.0.100.139
NRPE v2.12
bash-3.1# /usr/local/nagios/libexec/check_nrpe -H 10.0.100.138
NRPE v2.12

I can use another event handler:

bash-3.1# /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# /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

I can also telnet from the Nagios server to the monitored host:

bash-3.1# telnet 10.0.100.139 5666
Trying 10.0.100.139...
Connected to 10.0.100.139 (10.0.100.139).

but... 

I am still getting an SSL failure on the handshake?

Oct 11 19:12:43 mywebserverB nrpe[17659]: Error: Could not complete SSL 
handshake

But back to xinetd; does seem that its not binding or starting with NRPE 
correctly (not sure if this is why its not connecting)

{missing server in host panel}:

Oct 11 18:28:37 mywebserverB xinetd[23960]: Exiting...
Oct 11 18:28:38 mywebserverB xinetd[24300]: xinetd Version 2.3.14 started with 
libwrap loadavg labeled-networking options compiled in.
Oct 11 18:28:38 mywebserverB xinetd[24300]: Started working: 0 available 
services



{server showing in host panel}:

Oct 11 18:32:34 mywebserverA xinetd[3579]: Exiting...
Oct 11 18:32:34 mywebserverA xinetd[28455]: xinetd Version 2.3.14 started with 
libwrap loadavg labeled-networking options compiled in.
Oct 11 18:32:34 mywebserverA xinetd[28455]: Started working: 1 available service


--
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-29 Thread Assaf Flatto



Assaf - thanks for your time and patience outlining those steps:



That is what the list is about .

I was able to at least get the connectivity between Nagios server and 
the monitored host to show a valid connection:


/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

there were a few things wrong on the monitoring server, or at least 
what I changed:


* changed ownership of nrpe.cfg to nagios.nagios
* modified xinetd.d/nrpe to show Nagios server IP as allowed connection

I struggled with a few other things, and connection attempts, before I 
realized I hadn't restarted the nrpe service after modifying the 
xinetd.d/nrpe file.


I did notice that the plugin location from another server is different 
than the one that is missing:
/*/usr/lib64/nagios/plugins*/ vs //*usr/local/nagios/libexec/*/ 
 (guess this has something to do with the way it was compiled)


NRPE by default is placing the path as the lib64  in the nrpe.cfg sample 
file , while all other  packages use the local path - this is something 
that you get used to "ignore-modify " with time .
Guess I have to wait now a few mins before the host shows in the 
panel? as its not showing now even after 10 mins.  Restarting xinetd 
shows this in /var/log/messages:


*xinetd[22518]: bind failed (Address already in use (errno = 98)). 
service = nrpe (*is this a bug or anything in xinetd? I saw that 
referenced on a few other forums)


nrpe service is running and listening though on 5666
I have always run nrpe as a stand alone daemon , never with xinetd , to 
have better control on what is running and how it is run .


From what i remember about xinetd , it has an internal "keep-alive" 
mechanism that waits till all connections are terminated before it 
releases a port (again , i may be wrong ) you  need to stop it and wait 
till the port is no longer shown as active , and then restart it .


Or move to a standalone daemon - that will allow you to control the nrpe 
separately from any other service and  better debug the issue.




--
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

--
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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-28 Thread Jonathan Wiggins

On Sep 28, 2010, at 2:23 AM, Assaf Flatto wrote:

> Jonathan , lets take this from the top .
> 
> You are trying to test on a remote server the amount of logged in users - 
> that is done via nrpe .
> To test that is working you need to follow 3 major steps 
> 1) make sure NRPE is installed and running on the remote machine . And 
> accepting connections from the main nagios server *
> 2) make sure you have the nagios plugins installed on the remote machine .*
> 3) make sure the nrpe commands definitions point to the correct location of 
> the plugins .
> 
> 
> once you followed the first 2 steps , you can test to see if the nrpe works 
> by issuing the following  command on the nagios server 
> 
> "/usr/local/nagios/libexec/check_nrpe -H  -c check_users "
> 
> If every thing is working - you should get the OK or any other result 
> matching your criteria .
> 
> If you get an error - about can not execute the command - log on to the 
> remote host and recheck step 3.
> 
> 
> 
> 
> * read relevant documentation on http://www.nagios.org 
> 
> 

Assaf - thanks for your time and patience outlining those steps:

I was able to at least get the connectivity between Nagios server and the 
monitored host to show a valid connection:

/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

there were a few things wrong on the monitoring server, or at least what I 
changed:

* changed ownership of nrpe.cfg to nagios.nagios
* modified xinetd.d/nrpe to show Nagios server IP as allowed connection

I struggled with a few other things, and connection attempts, before I realized 
I hadn't restarted the nrpe service after modifying the xinetd.d/nrpe file.

I did notice that the plugin location from another server is different than the 
one that is missing:
/usr/lib64/nagios/plugins vs /usr/local/nagios/libexec/  (guess this has 
something to do with the way it was compiled)

Guess I have to wait now a few mins before the host shows in the panel? as its 
not showing now even after 10 mins.  Restarting xinetd shows this in 
/var/log/messages:

xinetd[22518]: bind failed (Address already in use (errno = 98)). service = 
nrpe (is this a bug or anything in xinetd? I saw that referenced on a few other 
forums)

nrpe service is running and listening though on 5666--
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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-28 Thread Assaf Flatto

 Jonathan , lets take this from the top .

You are trying to test on a remote server the amount of logged in users 
- that is done via nrpe .

To test that is working you need to follow 3 major steps
1) make sure NRPE is installed and running on the remote machine . And 
accepting connections from the main nagios server *

2) make sure you have the nagios plugins installed on the remote machine .*
3) make sure the nrpe commands definitions point to the correct location 
of the plugins .



once you followed the first 2 steps , you can test to see if the nrpe 
works by issuing the following  command on the nagios server


"/usr/local/nagios/libexec/check_nrpe -H  -c check_users "

If every thing is working - you should get the OK or any other result 
matching your criteria .


If you get an error - about can not execute the command - log on to the 
remote host and recheck step 3.





* read relevant documentation on http://www.nagios.org


Assaf

On 27/09/10 18:37, Jonathan Wiggins wrote:
on the Nagios server, I didn't see the event handler, "check_users", I 
only saw a "check_local_users" in the commands.cfg file. Perhaps 
that's incorrect.


But, on the machine that is missing in the host panel, in nrpe.cfg 
there is this definition defined:

*command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10*

However, I can only successfully run that above command on the Nagios 
server:


*bash-3.1# /usr/local/nagios/libexec/check_users -w 5 -c 10*
*USERS OK - 1 users currently logged in |users=1;5;10;0*

Sorry for my confusion, am I to run that event handler against the 
missing host, or on the Nagios server.   It only works from the Nagios 
server, as that's where the plugins are located.


On Sep 27, 2010, at 9:11 AM, Assaf Flatto wrote:



--
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

--
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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-27 Thread Jonathan Wiggins
on the Nagios server, I didn't see the event handler, "check_users", I only saw 
a "check_local_users" in the commands.cfg file. Perhaps that's incorrect.

But, on the machine that is missing in the host panel, in nrpe.cfg there is 
this definition defined:
command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10

However, I can only successfully run that above command on the Nagios server:  

bash-3.1# /usr/local/nagios/libexec/check_users -w 5 -c 10
USERS OK - 1 users currently logged in |users=1;5;10;0

Sorry for my confusion, am I to run that event handler against the missing 
host, or on the Nagios server.   It only works from the Nagios server, as 
that's where the plugins are located.

On Sep 27, 2010, at 9:11 AM, Assaf Flatto wrote:

> On 27/09/10 16:52, Jonathan Wiggins wrote:
>> 
>> any thoughts? I'm still struggling to resolve this..
>> 
>> 
>>> HI Assaf.
>>> 
>>> Thanks for replying to my email
>>> 
>>> this is the output of the command
>>> 
>>> $ ./check_users -w 5 -c 10
>>> USERS OK - 1 users currently logged in |users=1;5;10;0
>>> 
>>> 
> 
> did you  run the check with the FULL path as it is specified in the nrpe 
> definition ?
> 
> 
> 
> -- 
> Never,Ever Cut A Deal With a Dragon 
> 
> 
> Next year I will be doing the London to Paris bike ride to 
> raise money for the DogTrust (www.dogstrust.co.uk) .
> Please Sponsor me at http://www.justgiving.com/Assaf-Flatto
> --
> 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@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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-27 Thread Assaf Flatto

 On 27/09/10 16:52, Jonathan Wiggins wrote:

any thoughts? I'm still struggling to resolve this..



HI Assaf.

Thanks for replying to my email

this is the output of the command

$ ./check_users -w 5 -c 10
*USERS OK - 1 users currently logged in |users=1;5;10;0*




did you  run the check with the FULL path as it is specified in the nrpe 
definition ?




--
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

--
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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-27 Thread Jonathan Wiggins
any thoughts? I'm still struggling to resolve this..


> HI Assaf.
> 
> Thanks for replying to my email
> 
> this is the output of the command
> 
> $ ./check_users -w 5 -c 10
> USERS OK - 1 users currently logged in |users=1;5;10;0
> 
> On Sep 22, 2010, at 2:19 AM, Assaf Flatto wrote:
> 
>> On 22/09/10 02:09, Jonathan Wiggins wrote:
>>> 
>>> # 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?
>>> 
>> 
>> when you try running one of the command localy on the remote machine what is 
>> the output ?
>> 
>> "/usr/lib64/nagios/plugins/check_users -w 5 -c 10 " - what does this command 
>> return ?
>> 
>> Assaf
>> 
>> 
>> -- 

--
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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-22 Thread Jonathan Wiggins
HI Assaf.

Thanks for replying to my email

this is the output of the command

$ ./check_users -w 5 -c 10
USERS OK - 1 users currently logged in |users=1;5;10;0

On Sep 22, 2010, at 2:19 AM, Assaf Flatto wrote:

> On 22/09/10 02:09, Jonathan Wiggins wrote:
>> 
>> # 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?
>> 
> 
> when you try running one of the command localy on the remote machine what is 
> the output ?
> 
> "/usr/lib64/nagios/plugins/check_users -w 5 -c 10 " - what does this command 
> return ?
> 
> Assaf
> 
> 
> -- 
> Never,Ever Cut A Deal With a Dragon 
> 
> 
> Next year I will be doing the London to Paris bike ride to 
> raise money for the DogTrust (www.dogstrust.co.uk) .
> Please Sponsor me at http://www.justgiving.com/Assaf-Flatto
> --
> 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@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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-22 Thread Assaf Flatto

 On 22/09/10 02:09, Jonathan Wiggins wrote:

# 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?




when you try running one of the command localy on the remote machine 
what is the output ?


"/usr/lib64/nagios/plugins/check_users -w 5 -c 10 " - what does this 
command return ?


Assaf


--
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

--
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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-21 Thread Jonathan Wiggins
# 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:jwigg...@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:jwigg...@salon.com] 
> Sent: Wednesday, 22 September 2010 06:36
> To: nagios-users@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
> tcp0  0 0.0.0.0:56660.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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-21 Thread Stuart Browne
Ok, what are those definitions and what output do they give when you run them 
on the remote machine manually?

From: Jonathan Wiggins [mailto:jwigg...@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:jwigg...@salon.com]
Sent: Wednesday, 22 September 2010 06:36
To: 
nagios-users@lists.sourceforge.net<mailto:nagios-users@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
tcp0  0 0.0.0.0:56660.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@lists.sourceforge.net<mailto:Nagios-users@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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-21 Thread Jonathan Wiggins
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:jwigg...@salon.com] 
> Sent: Wednesday, 22 September 2010 06:36
> To: nagios-users@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
> tcp0  0 0.0.0.0:56660.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@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@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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-09-21 Thread Stuart Browne
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:jwigg...@salon.com]
Sent: Wednesday, 22 September 2010 06:36
To: nagios-users@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
tcp0  0 0.0.0.0:56660.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@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

[Nagios-users] can't get host to display in Host Detail panel

2010-09-21 Thread Jonathan Wiggins
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
tcp0  0 0.0.0.0:56660.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@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