Creating Delay in notifications

Atul Gosain atul at mindsw.com
Tue Oct 8 13:16:47 CEST 2002


Hi

We are monitoring some servers on WAN links. Sometimes due to some small
problem in internal network, nagios shows the remoe hosts as down or
unreachable.
Now i want that notifications of the remote hosts should be sent after 15
minutes of sustained problem.
For this i can write an event handler which can check
$LASTSTATECHANGE$ in my event handler according to which i send the mail
the mail when this macro value gets more than 15 min.
The problem is that we cannot specify notification command for each host,
otherwise i would have specified seperate notification commands for those
hosts which would check for 15 minutes delay.

Can somebody give the directions on how to do it?

-- 
                   _-.                       .-_
                 _..-'(                       )`-.._
              ./'. '||\\.       (\_/)       .//||` .`\.
           ./'.|'.'||||\\|..    )*.*(    ..|//||||`.`|.`\.
        ./'..|'.|| |||||\```````  "  '''''''/||||| ||.`|..`\.
      ./'.||'.|||| ||||||||||||.     .|||||||||||| ||||.`||.`\.
     /'|||'.|||||| ||||||||||||{     }|||||||||||| ||||||.`|||`\
    '.|||'.||||||| ||||||||||||{     }|||||||||||| |||||||.`|||.`
   '.||| ||||||||| |/'   ``\||/`     '\||/''   `\| ||||||||| |||.`
   |/' \./'     `\./          |/\   /\|          \./'     `\./ `\|
   V    V         V          }' `\ /' `{          V         V    V
   `    `         `               U               '         '


Atul Gosain
Mindframe Software and Services Pvt. Ltd.
A-50, Sector-39
Noida(UP).
ph no: 4500369,4575991






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list