<!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.6000.17095" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011>Thanks so much Ashish for your
reply.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011>I am trying to monitor state of all my containers with
different names.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011>So, I need to display names of all the 150 containers
on the page which I dont think will look good.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011>I am planning to dynamically create the configuration
file and restart nagios. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011>I will share the code once I have it developed. I think
it will help others too. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011>Thanks & Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=656274804-17032011>Sakshi Anand</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Kumar, Ashish [mailto:xml.devel@gmail.com]
<BR><B>Sent:</B> Thursday, March 17, 2011 12:02 AM<BR><B>To:</B> Anand, Sakshi;
Nagios Users List<BR><B>Subject:</B> Re: [Nagios-users] Create services
dynamically for a specific host<BR></FONT><BR></DIV>
<DIV></DIV>On Wed, Mar 16, 2011 at 7:51 PM, Anand, Sakshi <SPAN dir=ltr><<A
href="mailto:sa185043@ncr.com">sa185043@ncr.com</A>></SPAN> wrote:<BR>
<DIV class=gmail_quote>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV lang=EN-US link="blue" vlink="purple">
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>I have
gone through this article. Not of much help to me :(</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>Is it
somehow possible that nagios fetches service name from passive check sent to
it and display it as it is to nagios home page?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>Sakshi
Anand</SPAN></FONT></DIV><BR></DIV></BLOCKQUOTE>
<DIV><BR>Perhaps you can try naming the service something like "Enterprise
service". Send all the passive checks to this service and prefix a label
to the message and send out the alerts immediately, e.g.<BR><BR>CPU CRITICAL -
100% utilised<BR>MEM WARNING - 95% utilised<BR>JBOSS WARNING - something strange
in logs<BR>ORACLE CRITICAL - RAC service XXXX down<BR>crond CRITICAL - 0
processes running<BR><BR>If you are using e-mails for notifications then
probably you might want to change the format and focus more on the message, not
service name.<BR></DIV></DIV></BODY></HTML>