check_http and differents ports

tom.welsh at bt.com tom.welsh at bt.com
Fri Feb 29 12:19:15 CET 2008


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
nagios at HOST:~> 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: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Diego
Giurgola
Sent: 29 February 2008 10:51
To: nagios-users at 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:

[root at gentoonagios]# /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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080229/56b9fc84/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- 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