host event notifications

Andreas Ericsson ae at op5.se
Thu Mar 10 22:49:55 CET 2005



Arno Lehmann wrote:
> Andreas Ericsson wrote:
> 
>> Robert.Lattanzi at fitchratings.com wrote:
> 
> 
>>> miscommands.cfg entry:
>>> define command{
>>>         command_name    networkdevice-notify-by-epager
>>>         command_line     /usr/bin/snpp -m "$HOSTNAME$ (IP: 
>>> $HOSTADDRESS$)
>>> is $HOSTSTATE$ Info: $OUTPUT$ Time: $DATETIME$" $CONTACTPAGER$
>>> }
>>>
>>
>> The opening quotation mark misses its mate. Put a " after 
>> $CONTACTPAGER$ and things might work a bit better.
> 
> 
> Sure? I read this as `snpp -m "some stuff to send as a message" 
> $CONTACTPAGER$
> 
> But that's only me...
> 

Now it's me too. I need to stop trying to think while coding. ;)

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list