<?xml version="1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">Hi </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">I'm monitoring HTTPS on our web servers, when runing it via command line it works
fine. But when runing it through Nagios it gives me back "</span></font><font face="Times New Roman" size="3"><span style="font-size:12pt">Connection refused by
host" </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt">This is my services.cfg file: </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"># Service Definition HTTPS </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt">define service{ </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> use
generic-service </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> host_name
secure02 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> service_description HTTPS </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> is_volatile
0 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> check_period
24x7 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> max_check_attempts
4 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> normal_check_interval 5 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> retry_check_interval 1 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> contact_groups
System_Group </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> notification_interval 240 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> notification_period 24x7 </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> notification_options n </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> check_command
check_http!/testme.html </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt">this is the checkcommands.cfg file: </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"># 'check_https' command definition </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt">define command{ </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> command_name check_https </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt"> command_line $USER1$/check_http
-H $HOSTADDRESS$ -u
$ARG1$ -S </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt">When I run it in command line: </span></font></div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt">./check_http -H 000.000.000.000 -u testme.html -S This is what I will get
HTTP ok: HTTP/1.1 200 OK - 0.029 second response time |time= 0.029 </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Times New Roman" size="3"><span style="font-size:12pt">Nagios Version 1.2 - Plugins 1.3 - Red hat linux 9 </span></font></div>
<div align="left"><br/></div>
<div align="left"></div>
</body>
</html>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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