LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 03-26-2009, 01:33 AM   #1
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 387

Rep: Reputation: 38
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

        }
 
Old 03-26-2009, 06:25 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
What does # nagios -v <nagios_config_here> show?
 
Old 03-26-2009, 06:31 PM   #3
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 387

Original Poster
Rep: Reputation: 38
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
 
Old 03-26-2009, 09:02 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
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>.
 
  


Reply

Tags
nagios, notification, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios notifications for a host problem cmx08 Linux - Software 1 07-20-2011 07:35 AM
Advanced Notifications with Nagios matisq Linux - Server 9 01-06-2009 03:04 AM
Nagios Email notifications jackie001 Linux - Newbie 3 11-14-2008 10:58 AM
Nagios e-Mail notifications netmaster3620 Linux - Newbie 1 07-01-2008 07:33 PM
Nagios notifications nuganen Linux - Newbie 1 06-20-2008 02:13 PM


All times are GMT -5. The time now is 10:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration