PDA

View Full Version : Disable the remote commands between 11 pm and 4 am


mch
21-09-2006, 10:19
Hello,

Is it possible de disable the remote commands between 11 pm and 4 am ?

The saves begin at 11 pm and stop many services, and my remote command is a "send sms"...

Thanks

Fábio Emilio Costa
22-09-2006, 20:08
Okay, that's totally untested, but...

I believe that you could create a alternative zabbix_agent.conf, disabling Remote commands, and create a cron entry that, when the estipulated time comes, shuts zabbix_agent down and fires zabbix_agent up again, using the alternative zabbix_agent.conf! When the time slice for disabling of remote commands came, other cron entry shuts zabbix_agent down again and fires zabbix_agent up again, with default configuration.

mch
25-09-2006, 14:14
It's OK, it's possible to add a condition "time period" and then I specified 1-7,05:45-23:00

Thanks