[omd-users] Disable notifications for check_mk check
Mike Hanby
mhanby at uab.edu
Tue Jun 21 00:13:58 CEST 2011
I figured this out using extra_service_conf in main.mk and am posting back to the list in case it helps someone else (or me after I forget :-)
To test it, I'm enabling notifications for:
* "IPMI Sensor Summary" to get temperature alerts
* "fs_*" to get alerts for all file system disk usage
* "Memory Used" for a specific server, server1
* Disabling all other service notifications
The opt-in approach may not work for some, but for me I only care to be notified about a sub set of the services for now.
extra_service_conf["notifications_enabled"] = [
( "1", ALL_HOSTS, ["IPMI Sensor Summary","fs_*"]),
( "1", ["server1"], ["Memory Used"]),
( "0", ALL_HOSTS, ALL_SERVICES),
]
Mike
> -----Original Message-----
> From: omd-users-bounces at lists.mathias-kettner.de [mailto:omd-users-
> bounces at lists.mathias-kettner.de] On Behalf Of Mike Hanby
> Sent: Monday, March 14, 2011 2:07 PM
> To: 'omd-users at lists.mathias-kettner.de'
> Subject: [omd-users] Disable notifications for check_mk check
>
> Howdy,
>
> I'm running OMD version 0.47.20110302 and have it monitoring several
> switches via check_mk and SNMP.
>
> How do I disable notifications for a scenario where a system is powered
> off, resulting in the port link going down, a CRIT event according to
> the check. I'd like to get paged for other crit switch events, but in
> this environment a port going offline isn't worthy of a page.
>
> Here's the notification:
> Notification Type: PROBLEM
>
> Service: Interface 9
> Host: m6220-switch-0-0
> Address: x.x.x.x
> State: CRITICAL
>
> Date/Time: Mon Mar 14 13:56:43 CDT 2011
>
> Additional Info:
>
> CRIT - [Unit: 1 Slot: 0 Port: 9 Gigabit - Level] operstatus: down
> (CRIT)
>
> =================================
> Mike Hanby
> mhanby at uab.edu
> UAB School of Engineering
> Information Systems Specialist II
> IT HPCS / Research Computing
>
>
> _______________________________________________
> omd-users mailing list
> omd-users at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
More information about the omd-users
mailing list