<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>First off</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>Don't try checks as root. Root can do what ever it wants.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>Re run your check on the command line logged in as the
nagios user. Let us know what you get as a result.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>HOST:/usr/local/nagios/libexec # su -
nagios</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2><A href="mailto:nagios@HOST">nagios@HOST</A>:~>
id<BR>uid=1001(nagios) gid=100(users)
groups=100(users),1001(nagcmd)<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2> </DIV></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=566181411-29022008>HOST:
/usr/lib/nagios/plugins/check_http -I localhost -p 10080 -v -v</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>Note im using verbose mode so we can see what going
on.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>Also send excerpts from your log files showing what's going
on</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>Regards</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2>Tom</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566181411-29022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><FONT face=Arial color=#0000ff
size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Diego
Giurgola<BR><B>Sent:</B> 29 February 2008 10:51<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] check_http
and differents ports<BR></FONT><BR></DIV>
<DIV></DIV>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:<BR><BR>[root@gentoonagios]#
/usr/lib/nagios/plugins/check_http -I localhost -p 10080 <BR>HTTP OK HTTP/1.1
200 OK - 306 bytes in 0,004 seconds |time=0,003844s;;;0,000000 size=306B;;;0
<BR><BR>But, when I setup the nagios services.cfg file and get nagios on, it
refuses to work, and it says me "Connection refused".<BR>So, what is the
clue?<BR><BR>Thanks a lot for your time. <BR clear=all><BR>-- <BR>Diego
Giurgola<BR><BR>Contatti<BR>Cellulare: 328/1481314<BR>Skype:
diego.giurgola<BR>Profilo LinkedIn: <A
href="http://www.linkedin.com/in/diegogiurgola">http://www.linkedin.com/in/diegogiurgola</A>
</BODY></HTML>