setup yaps

Don Alfredo don.alfredo at pandora.be
Fri Jan 14 00:53:14 CET 2005


we are using gnokii with a nokia , serial connected ;
the checkcommands are below (put it somewhere in your checkcommands.cfg or 
mischecks.cfg)
we have troubles with overly long output lines, for example the complete text 
of an windows-eventlog entry (SMS protocol is limited to 160 characters) ; 
"cutting" the output to 160 chars seems not to give the expected result, i 
suspect a limitation of output chars within nagios itself ? -  . If there is 
an overly long output, the SMS is never sent, gnokii is not even called.
 This is why the output is kept short in these commands; 
----------
# 'notify-by-gnokii' command definition
define command{
	command_name	notify-by-gnokii
	command_line 	/usr/bin/printf "%b" "** Nagios **\nHost: 
$HOSTALIAS$\n$SERVICEDESC$ is: $SERVICESTATE$\n$DATETIME$" | /usr/bin/gnokii 
--sendsms $CONTACTPAGER$ --long 160 2 > /dev/null
	}	
# 'notify-by-gnokii' command definition
#define command{
#	command_name	notify-by-gnokii
#	command_line 	/usr/bin/printf "$OUTPUT$" | /usr/bin/gnokii --sendsms 
$CONTACTPAGER$ 2 > /dev/null
#	}	

# 'host-notify-by-gnokii' command definition
define command{
	command_name	host-notify-by-gnokii
	command_line 	/usr/bin/printf "%b" "** Nagios ** \nHost: $HOSTALIAS$ is 
$HOSTSTATE$\n$DATETIME$" | /usr/bin/gnokii --sendsms $CONTACTPAGER$ 2 
> /dev/null
	}	

############ Use these to DEBUG Gnokii ##############
#####################################################
# 'notify-by-gnokii' command definition
#define command{
#	command_name	notify-by-gnokii
#	command_line 	/usr/bin/printf "TEST-From-Nagios" | /usr/bin/gnokii --sendsms 
$CONTACTPAGER$ 2 > /dev/null
#	}	

# 'host-notify-by-gnokii' command definition
#define command{
#	command_name	host-notify-by-gnokii
#	command_line 	/usr/bin/printf "TEST-From-Nagios" | /usr/bin/gnokii --sendsms 
$CONTACTPAGER$ 2 > /dev/null
#	}	
--------------------

On Thursday 30 December 2004 12:22, Gabriel Granger wrote:
> Hi All,
>
> I'm wanting to setup Nagios to send out sms via my nokia mobile which
> is connected via serial.  I've installed yaps, but cant find much
> information about setting it up for talking to a mobile via serial.
> Does anyone know how to go about setting this up easily?
>
> Many thanks for your help,
>
> ---
> Merry Christmas & Happy new year
>
> Gabe Granger
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> 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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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