Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-26-2009, 01:33 AM
|
#1
|
Member
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400
Rep:
|
Nagios: Server Notifications
Hi all,
I can not for the life of me get Service notifications working on a working Nagios box.
In point form:
- Emails send fine from the command line using the command line for services in the commands.cfg file.
- The box has always and continues to email notify about Hosts going up and down, as expected.
- I have created 1 config file with a host and 1 service, [see below] nothing in inherited, so only 1 point of failure. This does not notify.
I can not see any reason why Service Notification should not be working....
Code:
define service{
active_checks_enabled 1 ; Active service checks are enabled
passive_checks_enabled 1 ; Passive service checks are enabled/accepted
parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
obsess_over_service 1 ; We should obsess over this service (if necessary)
check_freshness 0 ; Default is to NOT check service 'freshness'
notifications_enabled 1 ; Service notifications are enabled
event_handler_enabled 1 ; Service event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_interval 5 ; Only send notifications on status change by default.
is_volatile 0
check_period 24x7
normal_check_interval 2
retry_check_interval 1
max_check_attempts 99999
notification_period 24x7
notification_options w,u,c,r
contact_groups admins
service_description test_uptime
check_command check_wsc-aemc!uptime!"24,5"
host_name test
}
define host{
host_name test ; The name we're giving to this host
address swsyd-bes ; IP address of the host
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
check_command check-host-alive
max_check_attempts 5
notification_interval 9
notification_period 24x7
notification_options d,u,r
contact_groups admins
}
|
|
|
03-26-2009, 06:25 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
What does # nagios -v <nagios_config_here> show?
|
|
|
03-26-2009, 06:31 PM
|
#3
|
Member
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400
Original Poster
Rep:
|
Ahh thanks.
Hmmm all looks good.
snippet..
Code:
Total Warnings: 236
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
|
|
|
03-26-2009, 09:02 PM
|
#4
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
Nothing illuminating in all the warnings that you didn't post?
Quote:
Originally Posted by DaveQB
Code:
define service{
...
check_command check_wsc-aemc!uptime!"24,5"
...
}
|
Try something simpler to see if maybe the check_command is borked. e.g.: check_ssh or check_tcp!<some_port>.
|
|
|
All times are GMT -5. The time now is 03:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|