Error message when I start nagios

Philipp Snizek mailinglists at belfin.ch
Mon Apr 18 18:03:55 CEST 2005


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
HW¦j)b²ÊhžÊ+yÖòNˆLúèvç-èyšv'zË\jwbv·¯‰ì,¢xnÚÞvÊ!3ë¡Ûœ¶Çë¢jÞj[¬z»ŠÇ(½êð†'!¦º¹Ël¶»¥ÊX¯zêm¢Ø^‡*^JÖ«¶·šv)àžŒ!¶Úý§l¢Çgr‰¿i؝ëŸyjYhr'


More information about the Users mailing list