PDA

View Full Version : Scheduling


Emma
24-08-2005, 23:50
Hello,

I have tried searching around for an answer to my question to no end. I am trying to alter the times on when a particular check runs. For example I am only on call for certain servers Monday to Friday and only want the system to check on these days and alert.

I can re-design my alert scripts but was hoping Zabbix has a way to schedule these things.

Cheers

James Wells
25-08-2005, 00:01
Greetings,

At present, Zabbix doesn't provide a mechanism for scheduling checks the way you want it to, it does however, have a mechanism for scheduling alert notifications. Under the media types per user, you will see something like;
1-7,00:00-23:59

What this is saying is to alert on any day between 1 and 7 and any time between midnight and 11:59PM, in your case, I believe you would want to change this to;
2-6,00:00-23:59

There has been talk on these forums recently about regarding adding an actual scheduling mechanism for checks, but I am not sure where that stands at present or if it will be a feature in the 1.1 release.

Emma
25-08-2005, 00:06
Thanks James that will work for me, cheers

Nate Bell
25-08-2005, 16:06
I think the time format goes like this:
1 = Monday -> 7 = Sunday, so if he only wants alerts Monday-Friday, that should look like:
1-5,00:00-23:59

If not, then I have some settings I need to change. :)

Just a side note, you can string multiple times together with a ;
Lets say you want to be alerted only at night, but not during working hours (lets say from 8am - 5pm). You could do it like so:
1-5,00:00-07:59;1-5,17:00,23:59,1-7,00:00-23:59

Boom, skips over the working hours, alerts you at night, and on the weekends. Sort of the inverse of what you were looking for, but you get the idea.

Nate

rajeevtomar
26-08-2005, 16:55
I am wondering if this is possible in zabbix 1.0 .

James and Nate, please let me know, if I can also work on this line for 1.0 version.

Regards, Rajeev

Nate Bell
26-08-2005, 21:56
Sorry. It's a 1.1 only feature. However, if you want to set a trigger to only trigger at a certain time of day, there is a way. Ripped straight from the manual:


Function | Definition
-----------------------------------------------------------------
time() | Returns current time in HHMMSS format. Example: 123055

Example: CPU activity at night time
Use of function time():

({zabbix:system[procload].nodata(180)}=1)&({zabbix:system[procload].time(0)}>000000)& ({zabbix:system[procload].time(0)}<060000)

The trigger may change its status to true, only at night (00:00-06:00) time.

Unfortunately, there isn't a way that I know of to set which days this this happens on.

Nate