external notification commands
Marc Powell
marc at ena.com
Wed Jan 24 18:28:45 CET 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Brian Loe
> Sent: Wednesday, January 24, 2007 11:21 AM
> To: Marc Powell
> Cc: Nagios Users mailinglist
> Subject: Re: [Nagios-users] external notification commands
>
> On 1/24/07, Marc Powell <marc at ena.com> wrote:
>
> >
> > Try this to see if the program is reporting any errors --
> >
> > # 'notify-by-pager' command definition
> > define command{
> > command_name notify-by-pager
> > command_line /usr/local/pager/client $CONTACTADDRESS1$
> > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress:
> > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate:
> > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is
> > $SERVICESTATE$"'>> /tmp/nagios_notification.log 2>&1
> >
>
> Okay, did that, it created the file but didn't put anything in it.
>
Well, then the script is being called but doesn't output anything. Is
that normal? It's looking more and more to me that you need to get more
verbose output from the 'client' program. Everything we've done so far
indicates that nagios is doing exactly what it's supposed to.
--
Marc
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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