Strange notification problem

Ilya Meylikhov rage_q3 at mail.ru
Mon May 5 13:07:42 CEST 2008


Hi Tobias!
I've found suitable for me solution - I use a -l switch in gnokii which is
sets the maximum amount of symbols in the SMS. By default it is 160. So my
current command look like this:

define command{
        command_name notify-service-by-sms
        command_line echo
"$HOSTNAME$.secretdomain.ru/$HOSTALIAS$/$SERVICEDESC$/$SERVICESTATE$:$SERVIC
EOUTPUT$ [$SHORTDATETIME$]" |gnokii --sendsms $CONTACTPAGER$ -l 220 >>
/usr/local/nagios/var/gnokii.log > 2>$1
}

With this command I can send SMS with more than 160 symbols but less than
220 and it's suitable for my needs.

Yours faithfully,
			Ilya.


-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Tobias
Klausmann
Sent: Monday, May 05, 2008 2:45 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Strange notification problem

Hi! 

On Mon, 05 May 2008, Ilya Meylikhov wrote:
> I've solved the problem - the CRITICAL state output of some
> services on this host had more than 160 symbols - gnokii was
> unable to send an SMS that is more than 160 symbols. Btw maybe
> anyone knows how to make gnokii send sms which contains more
> than 160 symbols?

The 160-character limit is inherent to SMS (over GSM), as
described here:

http://en.wikipedia.org/wiki/Short_message_service#Message_size

So there is very little you can do about it. You could split the
messages in two, but I advise against it.

Regards,
Tobias

-- 
"You don't *run* programs on Ultrix." - Mark Moraes
"Right, you chase them." - Rayan Zachariassen

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao
ne
_______________________________________________
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


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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