Question: How do I reduce the size of the alerts that nagios sends?

Scott Sugar ssugar at proserveit.com
Wed Aug 3 22:30:37 CEST 2005


Yes, all you need to do is go into your commands.cfg file and alter your notify-by-email command to look something like this:
 
define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf "%b" "Host: $HOSTNAME$\nAddress: $HOSTADDRESS$\nService: $SERVICEDESC$" | /bin/mail -s "$NOTIFICATIONTYPE$" $CONTACTEMAIL$
        }
 
and your host-notify-by-email command to look like this:
 
define command{
        command_name    host-notify-by-email
        command_line    /usr/bin/printf "%b" "Host: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $HOSTSTATE$" | /bin/mail -s "$NOTIFICATIONTYPE$" $CONTACTEMAIL$
        }


 

________________________________

From: nagios-users-admin at lists.sourceforge.net on behalf of Dan Knoblauch
Sent: Wed 8/3/2005 4:45 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Question: How do I reduce the size of the alerts that nagios sends?




Hello all. I use my cellular phone to receive alerts from my nagios host. The problem is that the cell phone has a limited amount of buffer space for received messages so whenever I get a page from nagios it gets split into 2 or more messages. Is it possible to reduce the content of the message to read something like:

Subject: Problem
Host: mx.mydomain.com
IP: 111.111.111.111
Service: SMTP

Thanks in advance.
Dan.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050803/aef6a02c/attachment.html>


More information about the Users mailing list