|
@@ -153,6 +153,9 @@ then
|
|
|
# Exit if an error occurs during the execution of the script
|
|
# Exit if an error occurs during the execution of the script
|
|
|
ynh_abort_if_errors
|
|
ynh_abort_if_errors
|
|
|
|
|
|
|
|
|
|
+ yunohost service stop zabbix-server
|
|
|
|
|
+ yunohost service stop zabbix-agent
|
|
|
|
|
+
|
|
|
cp -rp /etc/zabbix /tmp/
|
|
cp -rp /etc/zabbix /tmp/
|
|
|
cp -p /usr/share/zabbix/conf/zabbix.conf.php /tmp/
|
|
cp -p /usr/share/zabbix/conf/zabbix.conf.php /tmp/
|
|
|
|
|
|
|
@@ -174,6 +177,9 @@ then
|
|
|
yunohost service add zabbix-server -d "Management Zabbix server daemon : Collect, agregate, compute and notify"
|
|
yunohost service add zabbix-server -d "Management Zabbix server daemon : Collect, agregate, compute and notify"
|
|
|
yunohost service add zabbix-agent -d "Management Zabbix agent daemon : send informations about this host to the server"
|
|
yunohost service add zabbix-agent -d "Management Zabbix agent daemon : send informations about this host to the server"
|
|
|
|
|
|
|
|
|
|
+ yunohost service start zabbix-server
|
|
|
|
|
+ yunohost service start zabbix-agent
|
|
|
|
|
+
|
|
|
#test if zabbix server is started
|
|
#test if zabbix server is started
|
|
|
check_proc_zabbixagent
|
|
check_proc_zabbixagent
|
|
|
|
|
|