Email/SMS Notifications for a particular service

Hendrik BŠäcker andurin at process-zero.de
Thu Oct 23 21:54:47 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Kaushal Shriyan schrieb:


> Nagios version 2.9
OK, thanks.

> define service {
    host_name       nmhost0001
    service_description     NetmagicHTTP
    check_period    24x7
    check_command   check_nrpe!check_http_netmagic
    contact_groups  admins
    notification_period     24x7
    normal_check_interval   5
    retry_check_interval    1
    max_check_attempts      4
    is_volatile     0
    parallelize_check       1
    active_checks_enabled   1
    passive_checks_enabled  1
    obsess_over_service     1
    event_handler_enabled   1
    low_flap_threshold      0.000000
    high_flap_threshold     0.000000
    flap_detection_enabled  1
    freshness_threshold     0
    check_freshness 0
    notification_options    u,w,c,r
    notifications_enabled   1
    notification_interval   300
    stalking_options        n
    process_perf_data       1
    failure_prediction_enabled      1
    retain_status_information       1
    retain_nonstatus_information    1
    }

What members do the contact_group "admins" have? Do they have
notifications enabled?

> 2008-10-23 00:00:00: CURRENT SERVICE STATE:
> nmhost0001;NetmagicHTTP;OK;HARD;1;HTTP OK HTTP/1.1 200 OK - 0.001 second
> response time
> 2008-10-23 02:49:27: SERVICE ALERT:
> nmhost0001;NetmagicHTTP;CRITICAL;HARD;1;HTTP CRITICAL - pattern found
> 2008-10-23 03:08:07: SERVICE ALERT:
> nmhost0001;NetmagicHTTP;OK;HARD;1;HTTP OK HTTP/1.1 200 OK - 0.005 second
> response time

Ok, HARD Alerts every time. Notifications should be send out from nagios
if the further notification filters were passed by.
1. global notifications
2. object notification options
3. contact notification options

For more background, please (re-)read:
http://nagios.sourceforge.net/docs/2_0/notifications.html
> Please let me know if you need any other information

> Thanks and Regards

> Kaushal


> ------------------------------------------------------------------------

> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/


> ------------------------------------------------------------------------

> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkA1ocACgkQlI0PwfxLQjmbcQCfc7GBW/RaIOlgPTHkSUxXcg1r
cG8An27a13BxxJbsfcuac1Uj4Oa7fLQp
=sVn/
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/




More information about the Developers mailing list