On Wed, 29 Apr 2009 07:53:06 -0600, Matt Nelson <m...@frozenatom.com> wrote:
>> >I am trying to use HOSTALIAS in one of my service definitions. Is this >> >possible? I looked at: >> >http://nagios.sourceforge.net/docs/3_0/macrolist.html >> >and it looks like it is. >> How about telling us the behaviour you're getting, what you expect, >> and the sample configuration to show us how you're doing it so we >> might be able to help? >> -- >> Jonathan Angliss >> <j...@netdork.net> >Sorry I was being lazy when I posted this. Here is some info to go by: > >*host.cfg* > >define host { > use default > host_name jmsFarmManagedServer3.dev > alias Server3 > address weblogic03.dev > } > >*service.cfg (This way works fine)* > > >define service{ > use critical-service > host_name jmsFarmManagedServer3.dev > service_description JMSDestinationRuntime-ConsumersCurrentCount > check_command >check_jmx!5555!1!1!'com.bea:ServerRuntime=jmsFarmManagedServer3,name=edijmsmodule\!jmsfarmjmsserv...@ediincomingqueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount' >--jmxrmi 'weblogic.management.mbeanservers.runtime' > notifications_enabled 0 >} > > >*service.cfg (This way does not work)* > >define service{ > use critical-service > host_name jmsFarmManaged$HOSTALIAS$.dev > service_description JMSDestinationRuntime-ConsumersCurrentCount > 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' > notifications_enabled 0 >} Have you tried increasing the debugging to see what's actually being passed? Looking at your definition, you have '$HOSTALIAS$' (note the single quote), yet that doesn't exist on the working example. Was this a typo? Also, you need'll need to provide the command definition so we can see how the args are being passed. -- Jonathan Angliss <j...@netdork.net> ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null