[Check_mk (english)] contact group and email notification

Hi,

Can someone on this list share his config file main.mk for having a
simple email notification when one check is critical?

I have spent one hour digging on the web to find out how to configure
a simple email notification.

Here are my config files:

/root/soft/check_mk/nagios-3.2.1/sample-config/template-object/contacts.cfg

···

===========================================================
define mycontact{
        contact_name nagiosadmin
        use generic-contact
        alias Nagios Admin
        email bh@udev.org
        }

I have tagged one host with "mailwarn" in main.mk, but I don't know
how to refer to "mycontact" in the main.mk.

Any help?

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."

You can use the “host_contactgroups” in main.mk to tie labels to Nagios contact groups.

/Rutger

···

On Tue, Nov 9, 2010 at 11:45 AM, Benjamin Henrion bh@udev.org wrote:

Hi,

Can someone on this list share his config file main.mk for having a

simple email notification when one check is critical?

I have spent one hour digging on the web to find out how to configure

a simple email notification.

Here are my config files:

/root/soft/check_mk/nagios-3.2.1/sample-config/template-object/contacts.cfg

===========================================================

define mycontact{

    contact_name                    nagiosadmin

    use                             generic-contact

    alias                           Nagios Admin

    email                           bh@udev.org

    }

===========================================================

I have tagged one host with “mailwarn” in main.mk, but I don’t know

how to refer to “mycontact” in the main.mk.

Any help?

Benjamin Henrion <bhenrion at ffii.org>

FFII Brussels - +32-484-566109 - +32-2-4148403

"In July 2005, after several failed attempts to legalise software

patents in Europe, the patent establishment changed its strategy.

Instead of explicitly seeking to sanction the patentability of

software, they are now seeking to create a central European patent

court, which would establish and enforce patentability rules in their

favor, without any possibility of correction by competing courts or

democratically elected legislators."


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


Rutger Blom
Luzernvägen 14
227 38 LUND
Sweden
Tel. +46 763 46 99 44
www.rutgerblom.com

about.me/rutgerblom

Here are my 2 config files:

https://pastee.org/9b86a
https://pastee.org/y6xps

It still does not send any email, while I see the logs:

[1289310632] SERVICE ALERT:
spear-test.ch3rry.be;check_myservice;CRITICAL;HARD;1;CRITICAL -
check_myservice has a problem!

But no mail is out...

···

On Tue, Nov 9, 2010 at 1:24 PM, Rutger Blom <rutger@blokje.net> wrote:

You can use the "host_contactgroups" in main.mk to tie labels to Nagios
contact groups.

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."