NAGIOS: QPAGE

Terry Simons galimore at mac.com
Thu Sep 5 19:20:52 CEST 2002


Tim,

Here's my command:

define command{
         command_name    svc-notify-by-pager
         command_line    /bin/echo -e "$SERVICEDESC$ on $HOSTNAME$ just 
went '$SERVICESTATE$'" | /usr/local/bin/qpage -f nagios -p 
$CONTACTPAGER$
}


I know for a fact that this works... maybe you could cannibalize the 
pieces you want.

I'm not sure why yours isn't working... but I had nothing but bad luck 
with printf, so I use echo -e

- Terry


On Thursday, September 5, 2002, at 10:52 AM, Tim Rodman wrote:

> Terry,
>
> Wow, that was fast.  Here's the command:
>   command_line    /usr/bin/printf "%b" "Testing" |
> /usr/bin/qpage -i -p carlos -f nagios
>
> I assume carlos is set up correctly in qpage because I
> can send him a page from the command line with the
> above command.  Thanks for your help
>
> Tim
>
>
>
> --- Terry Simons <galimore at mac.com> wrote:
>> Tim,
>>
>> We use qpage with Nagios.
>>
>> Can you send the notification command that you're
>> using to try and send
>> the page?
>>
>> - Terry
>>
>>
>> On Thursday, September 5, 2002, at 10:28 AM, Tim
>> Rodman wrote:
>>
>>> Anyone,
>>>
>>> Has anyone had success using qpage with nagios? I
>> can
>>> send a page successfully from the command line as
>> user
>>> "nagios" but nagios won't send out any pages when
>> a
>>> device goes down.  I have had success sending
>> email
>>> and writing to a file from nagios though.  Thanks
>>>
>>> Tim
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Yahoo! Finance - Get real-time stock quotes
>>> http://finance.yahoo.com
>>>
>>>
>>>
>>
> -------------------------------------------------------
>>> This sf.net email is sponsored by: OSDN - Tired of
>> that same old
>>> cell phone?  Get a new here for FREE!
>>>
>>
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>> _______________________________________________
>>> Nagios-users mailing list
>>> Nagios-users at lists.sourceforge.net
>>>
>>
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>
>>
>>
>>
> -------------------------------------------------------
>> This sf.net email is sponsored by: OSDN - Tired of
>> that same old
>> cell phone?  Get a new here for FREE!
>>
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>>
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list