gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nagios/Groundwork's issue


From: Daniele Forsi
Subject: Re: Nagios/Groundwork's issue
Date: Wed, 23 Sep 2009 18:26:10 +0200

2009/9/23 Martyn:

> Here is my Nagios Command:
>
> /usr/bin/printf "%.120s" "ALERT\n\nNotification Type:
> $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
> $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
> $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ ##" | gnokii --sendsms
> "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is$SERVICESTATE$
> **" $CONTACTEMAIL$ -r

you can't put arbitrary text after --sendsms, that's what the
preceding printf is for, you will want only the phone number and
optionally the -r (or the long form --report which is self explaining)
for details about --sendsms see the text at the end of the output you
pasted in the email or man gnokii or the wiki

> GNOKII Version 0.6.22
> Couldn't read ä·x†Í·ˆ‘±]/.gnokiirc config file.
> Couldn't read ä·x†Í·ˆ‘±]/.gnokiirc config file.

that garbage is an unrelated and not harmful bug that I've just fixed

-- 
Daniele Forsi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]