problem with emailing.

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Oct 16 14:49:35 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16/10/08 08:28 AM, chris king wrote:
> ok heres my issue:
> 
> nagios.debug
> 
> ==> nagios.debug <==
> [1224160395.192595] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING
> ***********
> [1224160395.192619] [2048.1] [pid=2555] Processing: '$USER1$/check_icmp
> -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5'
> [1224160395.192638] [2048.1] [pid=2555]   Done.  Final output:
> '/usr/local/nagios/libexec/check_icmp -H 10.10.9.15 <http://10.10.9.15>
> -w  -c  -p 5'
> [1224160395.192642] [2048.1] [pid=2555] **** END MACRO PROCESSING
> *************
> [1224160405.037868] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING
> ***********
> [1224160405.037895] [2048.1] [pid=2555] Processing: 'HOST ALERT:
> apache0;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;CRITICAL - 10.10.9.15
> <http://10.10.9.15>: rta nan, lost 100%
> '
> [1224160405.037910] [2048.1] [pid=2555]   Done.  Final output: 'HOST
> ALERT: apache0;DOWN;SOFT;2;CRITICAL - 10.10.9.15 <http://10.10.9.15>:
> rta nan, lost 100%
> '
> [1224160405.037914] [2048.1] [pid=2555] **** END MACRO PROCESSING
> *************
> 
> 
> 
> 
> 
> 
> my mail.log
> 
> Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios,
> size=226, class=0, nrcpts=1,
> msgid=<200810161232.m9GCWFwB002578 at nagios.nsanet.com
> <mailto:200810161232.m9GCWFwB002578 at nagios.nsanet.com>>,
> relay=nagios at localhost
> Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579:
> <$@nagios.nsanet.com <http://nagios.nsanet.com>>... User unknown
> Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$,
> ctladdr=nagios (104/104), delay=00:00:00, xdelay=00:00:00, mailer=relay,
> pri=30226, relay=[127.0.0.1 <http://127.0.0.1>] [127.0.0.1
> <http://127.0.0.1>], dsn=5.1.1, stat=User unknown
> Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579:
> from=<nagios at nagios.nsanet.com <mailto:nagios at nagios.nsanet.com>>,
> size=226, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4,
> relay=nagios at localhost [127.0.0.1 <http://127.0.0.1>]
> 
> 
> 
> 
> 
> 
> 
> my contact-by-email command:
> 
> define command {
>         command_name    notify-host-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
> $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
> $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert:
> $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
> }
> 
> 
> 
> 
> 
> 
> can anyone see whats wrong?????????

Maybe the contact definition?

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI9zhf6dZ+Kt5BchYRAu4uAJ9Mnpd8H5hOHn2U6b+KWchsN5f2xwCgiCdl
E5pXb7rS3+2XwGdfsnvIbt4=
=eW9u
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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