Why not create several different services to monitor each port?<br><br>
<div class="gmail_quote">On Mon, Jan 10, 2011 at 8:33 AM, Rajesh Kumar <span dir="ltr"><<a href="mailto:ras.kumar01@gmail.com">ras.kumar01@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">Hi All</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span><font face="Times New Roman" size="3"> </font></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>I have installed Nagios Core in my CentOS but not able to configure port based check_http. We are using several port in apache-tomcat in remote server. We can able to configure default port 80. I have to need to configure server port of 8082, 8084 …<span> </span>could you assist me port based configure on nagios. This is my cfg <span> </span>file of check_http.</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"> </font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">define host{</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>use<span> </span>linux-server</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>host_name<span> </span>USSERVER</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>alias<span> </span>USSERVER</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>address<span> </span><a href="http://saas-testing.com/" target="_blank">saas-testing.com</a></font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>}</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">define service{</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>use<span> </span>generic-service</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>host_name<span> </span>USSERVER</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>service_description<span> </span>HTTP</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>check_command<span> </span>check_http</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>check_interval<span> </span>3</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>check_period<span> </span><span> </span>24x7</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>retry_interval<span> </span>2</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>max_check_attempts<span> </span>2</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>notification_interval<span> </span>5</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>notification_period<span> </span>workhours</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>notification_options<span> </span>w,c,u,r</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><span> </span>notifications_enabled<span> </span>1</font></font></p>
<div><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><span> </span>}</span></div>
<div><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"></span> </div>
<div><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">Regards</span></div>
<div><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"></span> </div>
<div><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">B.Rajeshkumar</span></div>
<div><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"></span> </div><br>------------------------------------------------------------------------------<br>Gaining the trust of online customers is vital for the success of any company<br>
that requires sensitive data to be transmitted over the Web. Learn how to<br>best implement a security strategy that keeps consumers' information secure<br>and instills the confidence they need to proceed with transactions.<br>
<a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a> <br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>