problem with emailing.

chris king slackwaresupport at gmail.com
Thu Oct 16 16:02:09 CEST 2008


define host {
host_name apache0
check_command check_icmp!100.0,20%!500.0,60%
max_check_attempts 15
check_period 24x7
active_checks_enabled 1
event_handler notify-host-by-email
event_handler_enabled 1
notification_interval 15
notification_period 24x7
notifications_enabled 1
alias apache0
address 10.10.9.15
notification_options d,u,r,f
stalking_options o,d,u
contact_groups linux
hostgroups linux
}


fixed that..
still same thing..



On Thu, Oct 16, 2008 at 8:45 AM, Assaf Flatto <assaf.flatto at ssp.uk.com>wrote:

> There are no arguments passed to the check_icmp command for the warning and
> critical ( -w and -c ) .
>
> i assume you are passing some arguments in your  service declaration , but
> they are not parsed .
>
> Check the service declaration .
>
> Assaf
>
>
> On Thursday 16 October 2008 13:28:34 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 -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:
> > rta nan, lost 100%
> > '
> > [1224160405.037910] [2048.1] [pid=2555]   Done.  Final output: 'HOST
> ALERT:
> > apache0;DOWN;SOFT;2;CRITICAL - 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>, relay=nagios at localhost
> > Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579:
> > <$@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] [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>, size=226, class=0, nrcpts=0, proto=ESMTP,
> > daemon=MSP-v4, relay=nagios at localhost [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?????????
>
>
>
> --
>
> Assaf Flatto
> SSP Ops Team
> Linux System Administrator
>
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential,
> legally
> privileged and/or protected by law. It is intended solely for the use of
> the
> person to whom it is addressed. If you are not the intended recipient,
> please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email
> communications. We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery
> or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service
> Partner UK
> Limited. Should you communicate with anyone at Select Service Partner UK
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and
> Wales
> (company number 05687183) whose registered office is at 1 The Heights,
> Brooklands, Weybridge. Surrey. KT13 0NY
>
>
>
> -------------------------------------------------------------------------
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081016/b6f16ed8/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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=/
-------------- next part --------------
_______________________________________________
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