]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
zabbix_agentd: Add UserParameter for Pakfire Status
authorAlexander Koch <ipfire@starkstromkonsument.de>
Sat, 27 Apr 2019 19:26:46 +0000 (21:26 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 May 2019 22:51:41 +0000 (23:51 +0100)
Ship the UserParameter for monitoring the status of pakfire for keeping track of available updates etc.

Signed-off-by: Alexander Koch <ipfire@starkstromkonsument.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/packages/zabbix_agentd
config/zabbix_agentd/sudoers
config/zabbix_agentd/userparameter_pakfire.conf [new file with mode: 0644]
lfs/zabbix_agentd

index eaecf26445ae2e62fd7935795b34b75453104be3..4420bda05bf0a42c62427ebed0d9e89b89683eb3 100644 (file)
@@ -5,6 +5,7 @@ etc/zabbix_agentd
 etc/zabbix_agentd/scripts
 etc/zabbix_agentd/zabbix_agentd.conf
 etc/zabbix_agentd/zabbix_agentd.d
+etc/zabbix_agentd/zabbix_agentd.d/userparameter_pakfire.conf
 usr/bin/zabbix_get
 usr/bin/zabbix_sender
 usr/lib/modules
index f4e4321cc9dedfe4816eb507eeb76417bfd7799f..1b362a4fd1f431cdeb6b1d0b5fe1f33adcdb75a4 100644 (file)
@@ -8,10 +8,10 @@
 # Some hints:
 # - It is strongly recommended to edit this file only using the visudo -f <filename> command. If you mess up this file,
 #   you might end up locking yourself out of your system!
-# - Append the full path to each command, using "," as separator.
+# - Append the full path incl. parameters to each command, using "," as separator.
 # - Only add commands you really need. Zabbix should not have more rights than it has to.
 #
-# Uncomment the following two lines and edit the example of commands to fit your needs:
+# Append / edit the following list of commands to fit your needs:
 #
-#Defaults:zabbix !requiretty
-#zabbix ALL=(ALL) NOPASSWD: <path to command1>, <path to command2>
+Defaults:zabbix !requiretty
+zabbix ALL=(ALL) NOPASSWD: /opt/pakfire/pakfire status
diff --git a/config/zabbix_agentd/userparameter_pakfire.conf b/config/zabbix_agentd/userparameter_pakfire.conf
new file mode 100644 (file)
index 0000000..aa2e80f
--- /dev/null
@@ -0,0 +1,2 @@
+### Parameter for monitoring pakfire status
+UserParameter=pakfire.status,sudo /opt/pakfire/pakfire status
index 1dcf28c5d8565e2e6ecbcda36da388a6619f5e4d..d4d5a22fba92abab54948fd292fe38ee89ee1cea 100644 (file)
@@ -91,6 +91,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        -mkdir -pv /etc/zabbix_agentd/scripts
        install -v -m 644 $(DIR_SRC)/config/zabbix_agentd/zabbix_agentd.conf \
                /etc/zabbix_agentd/zabbix_agentd.conf
+       install -v -m 644 $(DIR_SRC)/config/zabbix_agentd/userparameter_pakfire.conf \
+               /etc/zabbix_agentd/zabbix_agentd.d/userparameter_pakfire.conf
 
        # Create directory for additional agent modules
        -mkdir -pv /usr/lib/zabbix