send both mail and snmptraps using serviceescalation ?

nagios at teflonminne.org nagios at teflonminne.org
Wed Nov 3 08:52:49 CET 2004


I am monitoring some services, when they change state i would like to have
email sent. but i also want warnings and critical alarms to be sent as
traps to another monitoring system.

first of all, the following configuration was my start it send emails when
the state changes.


define service{
        use                             generic-service
        host_name                       host09
        service_description             rootvol
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           3
        retry_check_interval            1
        contact_groups                  mail-admins
        notification_interval           0
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_nrpe!check_disk1
        }

after this i added a serviceescalation:

define serviceescalation{
        host_name                       host09
        service_description             rootvol
        first_notification              1
        last_notification               144000
        notification_interval           1
        contact_groups          	trapreciever
}

Then the emailing stoped and only traps were sent.
The contact in contactgroup trapreviever executes a command which sends
the trap.

My guess then was that if i add an overlapping serviceescalation emails
would be sent. one mail was sent but only when the warning came, then no
more mails.

define serviceescalation{
        host_name                       host09
        service_description             rootvol
        first_notification              1
        last_notification               1
        notification_interval           1
        contact_groups                  mail-admins
}

Solve for this problem ?
I could implement a wrapper in my trapsending script which handels
alarmstates and send email on changes.

Is there a command for sending all alarms as traps more frequent without
disturbing the "normal" contact_groups ?

-- Stefan


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list