notify-by-pager / check_disk problem
Marc Powell
marc at ena.com
Tue Sep 27 16:41:46 CEST 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Andrew Xenides
> Sent: Monday, September 26, 2005 11:30 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] notify-by-pager / check_disk problem
>
> Hi,
>
>
>
> Im using nagios (duh) to send alerts via sms when my servers disks get
> full, my problem is that the output from the check_disk command is
greater
> than the maximum allowed characters (160) hence my $OUTPUT$ variable
is
> over 160 chars hence the message being sent to the sms gateway is way
over
> 160 chars.
>
>
>
> Is there anyway to manipulate this $OUTPUT$ before sending it to the
> gateway?
Sure, but not within Nagios. Since your notification command can be any
script you want, write a short one that takes the appropriate macros on
the command line, manipulate them any way you want then call your sms
notification program with the munged information.
--
Marc
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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