zabbix_agentd: New addon

New addon for monitoring IPFire by Zabbix Monitoring (https://www.zabbix.com/features).
See https://forum.ipfire.org/viewtopic.php?f=52&t=22039 and https://lists.ipfire.org/pipermail/development/2019-February/005324.html for further details.

Best regards,
Alex

Signed-off-by: Alexander Koch <ipfire@starkstromkonsument.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Alexander Koch
2019-02-14 00:06:19 +01:00
committed by Michael Tremer
parent 57d1564b3e
commit 06fc6170a2
14 changed files with 706 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/zabbix_agentd
#
# Description : This script starts the Zabbix Agent as a daemon (zabbix_agentd)
#
# Authors : Alexander Koch (ipfire@starkstromkonsument.de)
#
# Version : 01.00
#
# Notes :
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting Zabbix Agent..."
loadproc /usr/sbin/zabbix_agentd -c /etc/zabbix_agentd/zabbix_agentd.conf
;;
stop)
boot_mesg "Stopping Zabbix Agent..."
killproc /usr/sbin/zabbix_agentd
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/sbin/zabbix_agentd
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/zabbix_agentd