RES: Nagios do not send e.mails
Marcos Marinho
marcos.marinho at rac.com.br
Tue Aug 1 03:56:54 CEST 2006
RE: [Nagios-users] Nagios do not send e.mailsYes, Mike ,
In the nagios.cfg there is a line config like this :
enable_notifications=1
Is this right ?
Thanks for your cooperation
[Marcos Marinho] -----Mensagem original-----
De: Mike Koponick [mailto:mkoponick at redhawk.info]
Enviada em: segunda-feira, 31 de julho de 2006 18:58
Para: marcos.marinho at rac.com.br; nagios-users at lists.sourceforge.net
Assunto: RE: [Nagios-users] Nagios do not send e.mails
Are notifications turned on in the nagios.cfg file?
Mike
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marcos
Marinho
Sent: Monday, July 31, 2006 2:57 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios do not send e.mails
I had installed the version 2.4 by binary way and we had using
NagiosQL to configure.
The servers had been monitored ok
In all time that nagios was installed here none of the serves had not
been down any moment
On the first server down one, the nagios process did not send any
e.mail using the pre-configured scritp host-notify-by-email.
Whe I had tried runnig the script using user nagios the message was
sent with no problem.
This is what is showed in nagio.log
[1154056710] HOST ALERT: marcos;DOWN;SOFT;1;CRITICAL - Plugin timed
out after 10 seconds
[1154056720] HOST ALERT: marcos;DOWN;SOFT;2;CRITICAL - Plugin timed
out after 10 seconds
[1154056730] HOST ALERT: marcos;DOWN;SOFT;3;CRITICAL - Plugin timed
out after 10 seconds
[1154056740] HOST ALERT: marcos;DOWN;SOFT;4;CRITICAL - Plugin timed
out after 10 seconds
[1154056750] HOST ALERT: marcos;DOWN;HARD;5;CRITICAL - Plugin timed
out after 10 seconds
This is our configuration files
================================================================
define host {
host_name marcos
alias Workstation Marcos
address 10.10.21.18
parents Debian
check_command check-host-alive
max_check_attempts 5
check_interval 10
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
obsess_over_host 1
check_freshness 1
freshness_threshold 360
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contact_groups admins
notification_interval 5
notification_period 24x7
notification_options d,u
notifications_enabled 1
stalking_options d,u
register 1
}
================================================================
define command {
command_name host-notify-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 \\"Host $HOSTSTATE$ alert for
$HOSTNAME$!\\" $CONTACTEMAIL$
}
================================================================
define contactgroup {
contactgroup_name admins
alias Nagios Administrators
members redes
}
================================================================
define contact {
contact_name redes
alias Grupo Redes
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r
service_notification_options w,u,c,r
host_notification_commands host-notify-by-email
service_notification_commands notify-by-email
email marcos.marinho at dominio.com.br
}
================================================================
Any hints
Thank you before hands << File: ATT350909.txt >> << File:
ATT350911.txt >>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060731/fda33872/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- 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