Here's a method we use:<br><br>Here's something that might help. This check looks for a specific string in a file hosted by the Tomcat instance being checked. <br><br>define service{<br> use generic-service<br>
host_name hostname_here<br> servicegroups tomcat-services<br> service_description Tomcat Probe Instance 8082 <br> check_command check_http!-H tomcat_hostname_here -p 8082 -u /probe/adm/check.xml.htm -a userid:password -s ok<br>
}<br><br>
<br><br><div class="gmail_quote">On Sat, Oct 30, 2010 at 8:26 AM, quanta <span dir="ltr"><<a href="mailto:quanta.linux@gmail.com">quanta.linux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
Try to write a wrapper of check_http for yourself:
<a href="http://www.theillien.com/Sys_Admin_v12/html/v14/i12/a6_l2.htm" target="_blank">http://www.theillien.com/Sys_Admin_v12/html/v14/i12/a6_l2.htm</a><br>
<br>
On 10/27/2010 05:03 PM, Rajesh Kumar wrote:
<blockquote type="cite">
<div>Hi Sir</div>
<div> </div>
<div> I need to define multiple port in check_http. I defined
the command.cfg as follows, in my environment different port
tomcat are running how can i find the tomcat status</div>
<div> </div>
<div>define command{<br>
command_name check_http_args<br>
command_line $USER1$/check_http -H $ARG1$ -p $ARG2$<br>
}<br>
</div>
<div>for example</div>
<div> </div>
<div><a href="http://testingserver:8082/" target="_blank">http://testingserver:8082</a></div>
<div><a href="http://tomcatserver:8084/" target="_blank">http://tomcatserver:8084</a></div>
<div> </div>
<div>Please help me.</div>
<div> </div>
<div> </div>
<div>Thanks & Regards</div>
<div> </div>
<div>B.Rajeshkumar</div>
<pre><fieldset></fieldset>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
<a href="http://p.sf.net/sfu/nokia-dev2dev" target="_blank">http://p.sf.net/sfu/nokia-dev2dev</a></pre>
<pre><fieldset></fieldset>
_______________________________________________
Nagios-users mailing list
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
</div>
<br>------------------------------------------------------------------------------<br>
Nokia and AT&T present the 2010 Calling All Innovators-North America contest<br>
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada<br>
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing<br>
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store<br>
<a href="http://p.sf.net/sfu/nokia-dev2dev" target="_blank">http://p.sf.net/sfu/nokia-dev2dev</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>