Skip to content

Commit

Permalink
zabbix_agentd: Add UserParameter for Pakfire Status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Starkstromkonsument authored and mtremer committed May 7, 2019
1 parent 090af02 commit 5737a22
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/rootfiles/packages/zabbix_agentd
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions config/zabbix_agentd/sudoers
Expand Up @@ -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
2 changes: 2 additions & 0 deletions config/zabbix_agentd/userparameter_pakfire.conf
@@ -0,0 +1,2 @@
### Parameter for monitoring pakfire status
UserParameter=pakfire.status,sudo /opt/pakfire/pakfire status
2 changes: 2 additions & 0 deletions lfs/zabbix_agentd
Expand Up @@ -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
Expand Down

0 comments on commit 5737a22

Please sign in to comment.