notifications not working

André Barros decobarros at hotmail.com
Wed Nov 26 19:14:27 CET 2003


Marc,

thanx for your time. Just for your information, i can see the critical state 
in the web interface, everything looks fine, but i don't even see a error 
message in /var/log/maillig when the error happens.

hosts.cfg
---------

#
# CYCLOPE
#
define host{
    use                                 generic-host
    host_name                           cyclope
    alias                               Cyclope
    address                             96.1.1.22
}

services.cfg
------------

#
# CYCLOPE AUTH LOG
#
define service{
    use                                 generic-service
    host_name				cyclope
    service_description                 AUTH_LOG
    contact_groups			producao
    
check_command			check_log!/var/log/auth.log!/var/tmp/auth.log.nagios!'.*BAD.*\|.*FAIL.*\|.*REFUSED.*'
}

checkcommands.cfg
------------------

# 'check_log' command definition
define command{
	command_name	check_log
	command_line	$USER1$/check_log -F $ARG1$ -O $ARG2$ -q $ARG3$
	}

misccommands.cfg
------------------

# 'notify-by-email' command definition
define command{
	command_name	notify-by-email
	command_line	/usr/bin/printf "%b" "***** Nagios  *****\n\nNotification 
Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: 
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: 
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** 
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" 
$CONTACTEMAIL$
	}

>From: "Marc Powell" <mpowell at ena.com>
>To: André Barros 
><decobarros at hotmail.com>,<nagios-users at lists.sourceforge.net>
>Subject: RE: [Nagios-users] Re: notifications not working
>Date: Wed, 26 Nov 2003 11:29:44 -0600
>
>
>
> > -----Original Message-----
> > From: André Barros [mailto:decobarros at hotmail.com]
> > Sent: Wednesday, November 26, 2003 11:15 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Re: notifications not working
> >
> > Sorry for being stupid...
> >
> > Looks like notifications are working fine... the problem is happening 
>only
> > with check_log. This service, even when it reaches critical state, it's
> > not
> > sending notifications.... anyone know some problem with check_log?
>
>Not specifically and if the plugin is reporting the correct state 
>information then the problem isn't likely to be the plugin execution 
>itself. The pertinent host/service/command/notification definitions and log 
>entries would be extremely useful for troubleshooting. We're helpful, but 
>not psychic. It could be as simple as the output that you're trying to send 
>in your notification has a spurious ' or something that's interfering.
>
>--
>Marc
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: SF.net Giveback Program.
>Does SourceForge.net help you be more productive?  Does it
>help you create better code?  SHARE THE LOVE, and help us help
>YOU!  Click Here: http://sourceforge.net/donate/
>_______________________________________________
>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

_________________________________________________________________
MSN Messenger: instale grátis e converse com seus amigos. 
http://messenger.msn.com.br



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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