ck1987 发表于 2015-11-22 14:37:43

Cacti指定时间禁用启用报警

  59 23 * * * /usr/bin/mysql -uUsername -p'password' -e"update cacti.thold_data set thold_enabled='off' where id in(1,2,3)" > /tmp/m 2>&11 6 * * * /usr/bin/mysql -uUsername -p'password' -e"update cacti.thold_data set thold_enabled='on' where id in(1,2,3)" > /tmp/m2 2>&1
  
  crontab+mysql命令行实现
页: [1]
查看完整版本: Cacti指定时间禁用启用报警