Thanks a lot.<br><br>Please also give me solution of my first problem.<br><br><strong>I want to check http on port 80 for some servers and on port 8003 for others.<br></strong><br>Chandresh <br><br>On 8/26/05, Lori Adams <
<a href="mailto:ladams@cloudmark.com">ladams@cloudmark.com</a>> wrote:<br>> <br>> <br>> > -----Original Message-----<br>> <br>> > From: <a href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net
</a><br>> [mailto:<a href="mailto:nagios-users-">nagios-users-</a><br>> <br>> > <a href="mailto:admin@lists.sourceforge.net">admin@lists.sourceforge.net</a>] On Behalf Of Chandresh Suthar<br>> <br>> > Sent: Friday, August 26, 2005 10:45 AM
<br>> <br>> > To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>> <br>> > Subject: [Nagios-users] http port problem<br>> <br>> > <br>> <br>> > Hi,
<br>> <br>> > <br>> <br>> > I want to check http on port 80 for some servers and on port 8003 for<br>> <br>> > others.<br>> <br>> > <br>> <br>> > Entry in "checkcommands.cfg
" file is as follows<br>> <br>> > <br>> <br>> > 'check_http' command definition<br>> <br>> > command_name check_http<br>> <br>> > command_line $USER1$/check_http -H $HOSTADDRESS$
<br>> <br>> <br>> <br>> Make sure your $USER1$ set in resource.cfg is where check_http lives.<br>> <br>> Then run ./check_http –h in that directory to see all a complete help menu. <br>> See section on ports.
<br>> <br>> <br>> <br>> > Entry in "minimal.cfg"<br>> <br>> > <br>> <br>> > define service{<br>> <br>> > use <br>> generic-service
<br>> <br>> > host_name mail4<br>> <br>> > service_description HTTP<br>> <br>> > is_volatile 0<br>> <br>> > check_period 24x7
<br>> <br>> > max_check_attempts 4<br>> <br>> > normal_check_interval 5<br>> <br>> > retry_check_interval 1<br>> <br>> > contact_groups admins
<br>> <br>> > notification_interval 960<br>> <br>> > notification_period 24x7<br>> <br>> > check_command check_http<br>> <br>> > }
<br>> <br>> > <br>> <br>> > Please suggest any changes in above entries.<br>> <br>> > <br>> <br>> > Please also tell if i want to check http service for every 3 minutes<br>> <br>> > then what changes are required.
<br>> <br>> <br>> <br>> If you want to check every 3 minutes while the service check is in an "OK"<br>> state, set normal_check_interval to 3. If you want to check every 3 minutes<br>> while the service is in a SOFT state (not in "OK" state), set
<br>> retry_check_interval to 3. <br>> <br>> <br>> <br>> I suggest reading the docs:<br>> <a href="http://nagios.sourceforge.net/docs/2_0/xodtemplate.html">http://nagios.sourceforge.net/docs/2_0/xodtemplate.html
</a><br>> <br>> This will tell you about every option available to you in each config/object<br>> file and what those options do.<br>> <br>> <br>> <br>> > Chandresh Suthar<br>> <br>> > <br>
> <br>> > <br>> <br>> > -------------------------------------------------------<br>> <br>> > SF.Net email is Sponsored by the Better Software Conference & EXPO<br>> <br>> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
<br>> <br>> > Practices<br>> <br>> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA<br>> <br>> > Security * Process Improvement & Measurement * <a href="http://www.sqe.com/bsce5sf">
http://www.sqe.com/bsce5sf</a><br>> <br>> > _______________________________________________<br>> <br>> > Nagios-users mailing list<br>> <br>> > <a href="mailto:Nagios-users@lists.sourceforge.net">
Nagios-users@lists.sourceforge.net</a><br>> <br>> > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> <br>> > ::: Please include Nagios version, plugin version (-v) and OS when
<br>> <br>> > reporting any issue.<br>> <br>> > ::: Messages without supporting info will risk being sent to /dev/null<br>