Service Notification Issues
James Cammarata
James.Cammarata at altertrading.com
Fri Jun 17 17:32:51 CEST 2005
One other thing: If I go into the web interface and acknowledge the service alert, I am sent the service notification. So obviously the setup is working, as in there are no configuration errors in the commands, only the automatic notification of the service alert.
James Cammarata
System Administrator/Developer
Alter Trading
Desk: (314) 872-2426
Cell: (314) 409-0583
________________________________________
Out the Ethernet, through the router,
down the fiber, off another router,
down the T1, past the fire-wall
...nothing but Net
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James Cammarata
Sent: Friday, June 17, 2005 9:19 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Service Notification Issues
Hi all, I'm running nagios-1.1-3mdk (on Mandrake obviously) and I can't get service notifications to go out. Host notifications are working fine. We've been running nagios for over 2 years, and just recently decided to start working with some of the more advanced features. We monitor about 30 servers and 24 or so routers currently.
Here are snips of the relevant configs:
nagios.cfg:
use_retained_program_state=0
enable_notifications=1
execute_service_checks=1
check_service_freshness=1
freshness_check_interval=60
enable_flap_detection=1
log_notifications=1
contacts.cfg
define contact{
contact_name jamesc
alias James Cammarata
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r,u
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email james.cammarata at XXXXXXXXXXXX
pager 314XXXXXXX
}
contactgroups.cfg
define contactgroup{
contactgroup_name Admins
alias Network Administrators
members jamesc
}
hosts.cfg
define host {
use server-template
host_name lnxbk
alias Linux Backup Server
address 192.168.XX.XX
notifications_enabled 1
}
hostgroups.cfg
define hostgroup {
hostgroup_name 000_stl_servers
alias St.Louis Servers
contact_groups Admins
members lnxbk
}
services.cfg
define service {
name service-template
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 0
event_handler_enabled 0
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 0
register 0
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
contact_groups Admins
}
define service {
use service-template
host_name lnxbk
service_description Ping
check_command check_ping!100.0,20%!500.0,60%
notifications_enabled 1
notification_options w,u,c,r
}
Here is what the web view shows for that service:
Current Status: UNKNOWN
Status Information: /bin/ping -n 192.168.10.88 -c 5
Current Attempt: 1/3
State Type: HARD
Last Check Type: ACTIVE
Last Check Time: 06-17-2005 09:09:10
Status Data Age: 0d 0h 4m 18s
Next Scheduled Active Check: 06-17-2005 09:14:10
Latency: < 1 second
Check Duration: 5 seconds
Last State Change: 06-17-2005 08:39:17
Current State Duration: 0d 0h 34m 11s
Last Service Notification: N/A
Current Notification Number: 0
Is This Service Flapping? NO
Percent State Change: 5.46%
In Scheduled Downtime? NO
Last Update: 06-17-2005 09:13:17
Service Checks: ENABLED
Passive Checks: ENABLED
Service Notifications: ENABLED
Event Handler: DISABLED
Flap Detection: ENABLED
As you can see, the "Last Service Notification" field is "N/A", is that relevant? Or does that just reflect the fact that there are no service notifications in the log file for this service?
I'm thinking about upgrading to 2.0, but I haven't found any official Mandrake RPM's for the newer nagios versions, which means a hand compile. No big deal, but if I can avoid nuking our current setup I would prefer that.
Have I missed something obvious? Or is it a known bug with this older 1.1 version that was fixed, thus necessitating an upgrade?
James Cammarata
System Administrator/Developer
Alter Trading
Desk: (314) 872-2426
Cell: (314) 409-0583
________________________________________
Out the Ethernet, through the router,
down the fiber, off another router,
down the T1, past the fire-wall
...nothing but Net
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
_______________________________________________
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
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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