First off
 
Don't try checks as root. Root can do what ever it wants. 
 
Re run your check on the command line logged in as the nagios user. Let
us know what you get as a result.
 
HOST:/usr/local/nagios/libexec # su - nagios
[EMAIL PROTECTED]:~> id
uid=1001(nagios) gid=100(users) groups=100(users),1001(nagcmd)

 
HOST: /usr/lib/nagios/plugins/check_http -I localhost -p 10080 -v -v
 
Note im using verbose mode so we can see what going on.
 
Also send excerpts from your log files showing what's going on
 
Regards
 
Tom
 
 


________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Diego
Giurgola
Sent: 29 February 2008 10:51
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_http and differents ports


Hi all. I have a problem with check_http. I'd like to monitor my apache
server, which is running on 10080 port. When I try to use the script
from shell, it works wonderfully:

[EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost -p
10080 
HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds
|time=0,003844s;;;0,000000 size=306B;;;0 

But, when I setup the nagios services.cfg file and get nagios on, it
refuses to work, and it says me "Connection refused".
So, what is the clue?

Thanks a lot for your time. 

-- 
Diego Giurgola

Contatti
Cellulare: 328/1481314
Skype: diego.giurgola
Profilo LinkedIn: http://www.linkedin.com/in/diegogiurgola 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Reply via email to