Zabbix Agent integration on SME Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
858 B

13 years ago
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
# Templates to expand
templates2events("/etc/zabbix/zabbix_agent.conf", qw(zabbix-agent-update bootstrap-console-save));
templates2events("/etc/zabbix/zabbix_agentd.conf", qw(zabbix-agent-update bootstrap-console-save));
templates2events("/etc/sudoers", "zabbix-agent-update");
templates2events("/etc/rc.d/init.d/masq", "zabbix-agent-update");
templates2events("/etc/crontab", "zabbix-agent-update");
# Services to restart
safe_symlink("restart", "root/etc/e-smith/events/zabbix-agent-update/services2adjust/zabbix-agent");
safe_symlink("adjust", "root/etc/e-smith/events/zabbix-agent-update/services2adjust/masq");
# Start and stop links
service_link_enhanced("zabbix-agent", "S98", "7");
service_link_enhanced("zabbix-agent", "K10", "6");
service_link_enhanced("zabbix-agent", "K10", "0");