Service Notifications have stopped ?

Gene White guardian at sktc.net
Wed Dec 8 23:32:48 CET 2004


After searching the archives and documentation in vain, here's my
problem.

After having Nagios running for almost a month, service notification
emails have stopped being sent.  Host notifications are still working.
I have been adding to, and tweaking some of the cfg files, but have not
touched the misccommands.cfg (is was just copied from the sample-config
directory). Here are some examples from ../nagios/var/nagios.log:

[1102540194] SERVICE ALERT: SHDFS;Ping;WARNING;SOFT;1;PING WARNING -
Packet loss = 0%, RTA = 282.59 ms
[1102540254] SERVICE ALERT: SHDFS;Ping;OK;SOFT;2;PING OK - Packet loss =
0%, RTA = 99.84 ms
(((( No Notifications ))))

[1102512685] HOST ALERT: HNBDep2;DOWN;HARD;3;CRITICAL - Plugin timed out
after 10 seconds
[1102512685] HOST NOTIFICATION:
Gene;HNBDep2;DOWN;host-notify-by-email;CRITICAL - Plugin timed out after
10 seconds
[1102512945] HOST ALERT: HNBDep2;UP;HARD;1;PING OK - Packet loss = 0%,
RTA = 0.39 ms
[1102512945] HOST NOTIFICATION:
Gene;HNBDep2;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA =
0.39 ms
(((( Notification Logged and Received in my Inbox))))

The /var/log/maillog file does not have any entries at the time of the
Service Alert, but does have the Host Alert entry.
And this works from the CL:
[root at hnb-monitor etc]# /bin/mail -s "testing" gwhite at homenational.com
testing
..
Cc:

Here is my setup information:

Server - WBEL 3.0
Nagios 1.2
Plugins 1.3.1
Sendmail 8.12.11

I hope I have enough of the relevant cfg files pasted, anyway here they
are:

CGI.CGI
main_config_file=/usr/local/nagios-1.2/etc/nagios.cfg
physical_html_path=/usr/local/nagios-1.2/share
url_html_path=/nagios
show_context_help=0
use_authentication=1
authorized_for_system_information=nagios,guardian
authorized_for_configuration_information=guardian
authorized_for_system_commands=guardian
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=guardian
authorized_for_all_host_commands=guardian
xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg
default_statusmap_layout=5
default_statuswrl_layout=4
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=30


NAGIOS.CFG (snipped)
log_file=/usr/local/nagios-1.2/var/nagios.log
cfg_file=/usr/local/nagios-1.2/etc/checkcommands.cfg
cfg_file=/usr/local/nagios-1.2/etc/misccommands.cfg
cfg_file=/usr/local/nagios-1.2/etc/contactgroups.cfg
cfg_file=/usr/local/nagios-1.2/etc/contacts.cfg
cfg_file=/usr/local/nagios-1.2/etc/dependencies.cfg
cfg_file=/usr/local/nagios-1.2/etc/escalations.cfg
cfg_file=/usr/local/nagios-1.2/etc/hostgroups.cfg
cfg_file=/usr/local/nagios-1.2/etc/hosts.cfg
cfg_file=/usr/local/nagios-1.2/etc/services.cfg
cfg_file=/usr/local/nagios-1.2/etc/timeperiods.cfg
resource_file=/usr/local/nagios-1.2/etc/resource.cfg
status_file=/usr/local/nagios-1.2/var/status.log
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios-1.2/var/rw/nagios.cmd
comment_file=/usr/local/nagios-1.2/var/comment.log
downtime_file=/usr/local/nagios-1.2/var/downtime.log
lock_file=/usr/local/nagios-1.2/var/nagios.lock
temp_file=/usr/local/nagios-1.2/var/nagios.tmp
log_rotation_method=m
log_archive_path=/usr/local/nagios-1.2/var/archives
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_service_checks=1
inter_check_delay_method=s
service_interleave_factor=s
max_concurrent_checks=0
retain_state_information=1
state_retention_file=/usr/local/nagios-1.2/var/status.sav
retention_update_interval=60
use_retained_program_state=0
interval_length=60
use_agressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
enable_notifications=1
enable_event_handlers=1

EXAMPLE FROM SERVICES.CFG"
define service {
name                            defservice2
is_volatile                     0
check_period                    24x7
max_check_attempts              2
normal_check_interval           5
retry_check_interval            1
contact_groups                  Itdept
notifications_enabled           1
notification_interval           30
notification_period             24x7
notification_options            r,w,u,c
register                        0
}

define service {
host_name               HNBMonitor
service_description     HTTP
check_command           check_http
use                     defservice2
}

EXAMPLE FROM CONTACTS.CFG:
# Default contact definition
define contact {
name                            default
service_notification_period     24x7
host_notification_period        24x7
service_notification_options    w,u,c,r
host_notification_options       d,u,r
service_notification_commands   notify-by-email
host_notification_commands      host-notify-by-email
register                        0
}

define contact {
contact_name    Gene
alias           Gene White
email           gwhite at mydomain.com
use             default
}

FROM THE CONTACTGROUP.CFG:
define contactgroup {
contactgroup_name              Itdept
alias                          HNB Itdept
members                        Gene
}


Any help, or ideas would be greatly appreciated.  THX

Gene White
Ark City, KS





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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