email notifications (was RE: RE: Error message when I start nagios)

Subhendu Ghosh sghosh at sghosh.org
Mon Apr 18 18:20:27 CEST 2005


On Mon, 18 Apr 2005, Philipp Snizek wrote:

> Hi
> 
> I've looked for notification setups for email alerts in the
> documentation, however I could not find an answer to what I've been
> looking for.
> 
> I wanted to set up email notification in nagios and hoped configuring
> the email address in contacts.cfg would be enough. As it seems it's
> not. 
> 
> The notify-by-email in misccommands.cfg doesn't seem to work:
> 
> define command{
>         command_name    notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: n\nAdditional Info:\n\n$SERVICEOUTPUT$" |  -s "**
> $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
> **" $CONTACTEMAIL$
>         }
> 
> So I put in front of /usr/bin/printf a sendmail command sending the
> mails to my account. The alert emails did come in but were unreadable
> and looking like this:
> 
> ELF 4TL4
> (44€4€àà€€nHnHpHpØpØÐ,˜H˜Ø˜
> ØÈÈ(((  Qåtd
> /lib/ld-linux.so.2GNU%51'3#$
/24-"%(+, 
> 

> 	

 )&!
> *0.õt>*8+¯gpg+Øܝ'?Šã·#IöëF5AÔEg9ƒµb#2•
> @Ú$DÚ?HÚ¯ú¶H:x%¨¯P†{–úº|ø¸9iF.
> €2HÃŒ3Ã
=Ü̾ൿ±RÄL‚¦œF‡D¸`eF¬R
> qLÚá
> 0libc.so.6strcpy_
>  
> _strtod_internalstdoutungetcgetopt_long__fpendinggetenv__strtol_intern
> alfscanfmemcpy__overflowmbrtowcmallociconv_openopterr__strtoul_interna
> labortiswprintcalloc__ctype_get_mb_cur_maxfputs_unlockeddcgettextnl_la
> nginfooptindstrncpyreallocmemset__uflowstrcmpfclosesetlocalestderrerro
> riconv__ctype_b_locfwrite__errno_locationbindtextdomain_IO_stdin_used_
> _libc_start_mainstrlenstrchrvfprintffreembsinitfopen64__cxa_atexit__gm
> on_start__GLIBC_2.3GLIBC_2.1.3GLIBC_2.1GLIBC_2.2GLIBC_2.0
> ii
> ðsi	úii
> ii
> 
> What am I doing wrong?
> 
> Thanks 
> Philipp


Looks like locale issue. What platform are your trying this on?
-- 

-sg



-------------------------------------------------------
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_ide95&alloc_id396&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