E-Pager Alerts only contain From: line

Darren Dunham ddunham at taos.com
Thu Feb 10 20:13:53 CET 2005


> I recently moved nagios from an old redhat box to Solaris.  Since the move
> my epager alerts only show the from: nagios at host.domain line.  They used to
> contain all the other information.  Any ideas?  Here is my notify-by-epager
> macro:
> # 'notify-by-epager' command definition
> define command{
>         command_name    notify-by-epager
>         command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost:
> $HO
> STNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo:
> $SERVICEOUTPUT$\n
> Date: $LONGDATETIME$" | /usr/bin/mail -s "$NOTIFICATIONTYPE$:
> $HOSTALIAS$/$SERV
> ICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
>         }

/usr/bin/mail on Solaris is not similar to BSD style 'mail'.  You
probably need to change that to /usr/bin/mailx (or /usr/ucb/mail, but I
prefer the first way).


-- 
Darren Dunham                                           ddunham at taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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