1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-14 06:29:07 +01:00
limosek-zaf/zaf

51 lines
617 B
Plaintext
Raw Normal View History

2016-03-23 14:37:51 +01:00
#!/bin/sh
# Some defaults
ZAF_AGENT_RESTART="service zabbix-agentd restart"
ZAF_AGENT_CONFIG="/etc/zabbix/zabbix_agentd.conf"
ZAF_LIB_DIR="/usr/lib/zaf/"
ZAF_PLUGINS_DIR="/usr/lib/zaf/plugins/"
if [ -f /etc/zaf.conf ]; then
. /etc/zaf.conf
fi
. ${ZAF_LIB_DIR}/zaf.lib.sh
case $1 in
2016-03-23 17:25:18 +01:00
check-agent-config)
zaf_check_agent_config
;;
2016-03-23 14:37:51 +01:00
update)
zaf_update_repo
;;
2016-03-23 17:25:18 +01:00
list)
2016-03-23 14:37:51 +01:00
zaf_list_installed_plugins
;;
2016-03-23 17:25:18 +01:00
info)
zaf_plugin_info "$2"
;;
2016-03-23 14:37:51 +01:00
install)
zaf_install_plugin "$2"
;;
2016-03-23 17:25:18 +01:00
remove)
zaf_remove_plugin "$2"
;;
2016-03-23 14:37:51 +01:00
*)
echo "$0 update"
2016-03-23 17:25:18 +01:00
echo "$0 list"
echo "$0 install plugin"
echo "$0 remove plugin"
2016-03-23 14:37:51 +01:00
;;
2016-03-23 17:25:18 +01:00
2016-03-23 14:37:51 +01:00
esac