<br><br><div class="gmail_quote">On Tue, Apr 28, 2009 at 9:43 PM, Jon Angliss <span dir="ltr"><<a href="mailto:jon@netdork.net">jon@netdork.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 28 Apr 2009 15:48:04 -0600, Matt Nelson <<a href="mailto:matt@frozenatom.com">matt@frozenatom.com</a>><br>
wrote:<br>
<div><div></div><div class="h5"><br>
>I am trying to use HOSTALIAS in one of my service definitions.  Is this<br>
>possible?  I looked at:<br>
><br>
><a href="http://nagios.sourceforge.net/docs/3_0/macrolist.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/macrolist.html</a><br>
><br>
>and it looks like it is.<br>
<br>
</div></div>How about telling us the behaviour you're getting, what you expect,<br>
and the sample configuration to show us how you're doing it so we<br>
might be able to help?<br>
<br>
--<br>
Jonathan Angliss<br>
<<a href="mailto:jon@netdork.net">jon@netdork.net</a>><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Register Now & Save for Velocity, the Web Performance & Operations<br>
Conference from O'Reilly Media. Velocity features a full day of<br>
expert-led, hands-on workshops and two days of sessions from industry<br>
leaders in dedicated Performance & Operations tracks. Use code vel09scf<br>
and Save an extra 15% before 5/3. <a href="http://p.sf.net/sfu/velocityconf" target="_blank">http://p.sf.net/sfu/velocityconf</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>Sorry I was being lazy when I posted this.  Here is some info to go by:<br><br><b>host.cfg</b><br><br>define host {<br>                use                     default<br>                host_name         jmsFarmManagedServer3.dev<br>
                alias                   Server3<br>                address              weblogic03.dev<br>            }<br><br><b>service.cfg (This way works fine)</b><br><br><br>define service{<br>        use                             critical-service<br>
        host_name                 jmsFarmManagedServer3.dev<br>        service_description    JMSDestinationRuntime-ConsumersCurrentCount<br>        check_command                   check_jmx!5555!1!1!'com.bea:ServerRuntime=jmsFarmManagedServer3,Name=EDIJMSModule\!jmsFarmJMSServer3@EDIIncomingQueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount' --jmxrmi 'weblogic.management.mbeanservers.runtime'<br>
        notifications_enabled           0<br>}<br><br><br>
<b>service.cfg (This way does not work)</b><br><br>define service{<br>
        use                             critical-service<br>
        host_name                 jmsFarmManaged$HOSTALIAS$.dev<br>
        service_description    JMSDestinationRuntime-ConsumersCurrentCount<br>
        check_command                  
check_jmx!5555!1!1!'com.bea:ServerRuntime=jmsFarmManaged'$HOSTALIAS$',Name=EDIJMSModule\!jmsFarmJMS'$HOSTALIAS$'@EDIIncomingQueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount'
--jmxrmi 'weblogic.management.mbeanservers.runtime'<br>
        notifications_enabled           0<br>
}<br>