[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Nagios/Groundwork's issue
From: |
Martyn |
Subject: |
RE: Nagios/Groundwork's issue |
Date: |
Wed, 23 Sep 2009 20:22:09 +0100 |
I would like to thank you for your response firstly but I need to ask..
Looking at the Nagios code below; how would I formulate a meaningful Nagios
alert using Gnokii.
Thanks
Martyn
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Daniele Forsi
Sent: 23 September 2009 17:26
To: Discussion forum for gnokii users.
Subject: Re: Nagios/Groundwork's issue
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
_______________________________________________
gnokii-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gnokii-users