<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>[Nagios-users] Question: How do I reduce the size of the alerts that nagios sends?</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText85124 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>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:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr>define command{<BR>
command_name
notify-by-email<BR>
command_line /usr/bin/printf "%b" "Host: $HOSTNAME$\nAddress:
$HOSTADDRESS$\nService: $SERVICEDESC$" | /bin/mail -s "$NOTIFICATIONTYPE$"
$CONTACTEMAIL$<BR> }</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>and your host-notify-by-email command to look like this:</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>define command{<BR>
command_name
host-notify-by-email<BR>
command_line /usr/bin/printf "%b" "Host: $HOSTNAME$\nAddress:
$HOSTADDRESS$\nState: $HOSTSTATE$" | /bin/mail -s "$NOTIFICATIONTYPE$"
$CONTACTEMAIL$<BR> }<BR></DIV>
<DIV dir=ltr><BR> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-admin@lists.sourceforge.net
on behalf of Dan Knoblauch<BR><B>Sent:</B> Wed 8/3/2005 4:45 PM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Question:
How do I reduce the size of the alerts that nagios sends?<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>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:<BR><BR>Subject: Problem<BR>Host: mx.mydomain.com<BR>IP:
111.111.111.111<BR>Service: SMTP<BR><BR>Thanks in
advance.<BR>Dan.<BR><BR><BR>-------------------------------------------------------<BR>SF.Net
email is Sponsored by the Better Software Conference & EXPO<BR>September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices<BR>Agile &
Plan-Driven Development * Managing Projects & Teams * Testing &
QA<BR>Security * Process Improvement & Measurement * <A
href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</A><BR>_______________________________________________<BR>Nagios-users
mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>::: Messages without supporting info will risk being sent to
/dev/null<BR></FONT></P></DIV>
</BODY>
</HTML>