How to use "exclude_period" parameter in a Mon.cf file ?
I want to launch a specific monitor only during a certain period of the
week (open hours).
I tried this way :
service Appli-BH
     exclude_period wday {saturday sunday}, wday {monday-friday} hour
{19-8}
     interval 5m
          monitor phttp.rrdrt.monitor ...
          period  wday {monday-friday} hour {9-18}
          alert   my-file.alert ....
          upalert my-file.alert ...
          period  wday {monday-friday} hour {9-18}
          alertafter 2 9m
          alert   my-sendtrap.alert ...
          upalert my-sendtrap.alert ...
service Appli-OBH
          exclude_period wday {monday-friday} hour {9-18}
          interval 5m
          monitor phttp.rrdrt.monitor ...
          period wday {saturday sunday}, wday {monday-friday} hour {19-8}
          alert   my-file.alert ...
          upalert my-file.alert ...
          period wday {saturday sunday}, wday {monday-friday} hour {19-8}
          alertafter 4 29m
          alert   my-sendtrap.alert ...
          upalert my-sendtrap.alert ...

But it seems not to work ... (service appears as "tested" in the minotaure
web interface) .
Additionnal question : use of exclude_hosts ?

Thanks in advance

_________________________________________________________________________________

                                                                        
 Emmanuel JOUBERT                        (Embedded image moved to file: 
                                                          pic05705.gif) 
                                                                        
 CS&N-CSO-MHS Operations Web Hosting     9, Rue du Ch�ne Germain - BP80 
                                                                        
 T�l : +33 (0)2.23.28.40.77                  35512 Cesson S�vign� Cedex 
                                                                        
 Fax : +33 (0)2.23.28.45.83                http://www.francetelecom.com 
                                                                        
 Mail : [EMAIL PROTECTED]               http://www.equant.com 
                                                                        

Attachment: pic05705.gif
Description: GIF image

Reply via email to