<html><body>
<p>Thanks for that info - good to know.<br>
But, I'm still in a bit of a box on this one.  As far as I can tell, there is no way in an event handler to get current status on the host and all the services under that host at once, true?<br>
So, I refer again to my forum post: <a href="http://www.nagios-forum.co.uk/forum/viewtopic.php?t=425&sid=0c0f0e49f1f54b3e7daf6917c5c2e920">http://www.nagios-forum.co.uk/forum/viewtopic.php?t=425&sid=0c0f0e49f1f54b3e7daf6917c5c2e920</a><br>
(I note that this post has ~280 views, which is quite a few, so people seem to be interested in it)<br>
There I have a proposed code solution patch.<br>
Would it be ok to integrate this into the 2.x and 3.x code?  What are the ramifications?  Maybe it could cause too many status updates, slowing the system down somewhat?<br>
What other possible solutions are there?  It would be great to get this fixed.<br>
<br>
_____________________<br>
Sean McKell<br>
<br>
<img width="16" height="16" src="cid:1__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Bruce Campbell <nagios-devel@vicious.dropbear.id.au>">Bruce Campbell <nagios-devel@vicious.dropbear.id.au><br>
<br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:2__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com); background-repeat: no-repeat; " width="40%">
<ul>
<ul>
<ul>
<ul><b><font size="2">Bruce Campbell <nagios-devel@vicious.dropbear.id.au></font></b><font size="2"> </font><br>
<font size="2">Sent by: nagios-devel-bounces@lists.sourceforge.net</font>
<p><font size="2">2006-06-30 04:55</font></ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">To</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Nagios-Devel <nagios-devel@lists.sourceforge.net></font></td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">cc</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
</td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">Subject</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Re: [Nagios-devel] status file and event handler update order</font></td></tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img width="1" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:3__=08BBFB0EDFC3A8ED8f9e8a93df938@us.ibm.com" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<tt>On Thu, 29 Jun 2006, Sean McKell wrote:<br>
<br>
> OK, the host macros work like you said  - muy bien, thanks.<br>
><br>
> Now, how do I get correct status on the services associated with a host, in<br>
> one event handler?  I want to gather the status of the services of the host<br>
> that match the state given by the macros.  Understand?<br>
<br>
Assuming that you know the name of the services on the host, you can use:<br>
<br>
                 $SERVICEMACRO:host_name:service_description$<br>
<br>
to retrieve the value of $SERVICEMACRO$ as relevant for host_name/ <br>
service_description.  Note that these will be as of the last check made <br>
for that host/service, which may be some time ago.<br>
<br>
There isn't a way to get, via the macros, a list of services on a host.<br>
<br>
( </tt><tt><a href="http://nagios.sourceforge.net/docs/2_0/macros.html">http://nagios.sourceforge.net/docs/2_0/macros.html</a></tt><tt> )<br>
<br>
-- <br>
   Bruce Campbell<br>
<br>
   A: It breaks the natural flow of conversation.<br>
   Q: Why is top-posting frowned upon?<br>
<br>
Using Tomcat but need to do more? Need to support web services, security?<br>
Get stuff done quickly with pre-integrated technology to make your job easier<br>
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br>
</tt><tt><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a></tt><tt><br>
_______________________________________________<br>
Nagios-devel mailing list<br>
Nagios-devel@lists.sourceforge.net<br>
</tt><tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a></tt><tt><br>
</tt><br>
</body></html>