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ÖòNLúèvç-èyv'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