diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-07-05 15:49:17 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-07-05 16:20:00 -0400 |
commit | 7c784de79327fbc9fd62404d69fe6813f9c6f559 (patch) | |
tree | dace1d0628f31faeba233fa67df1531e2d6f7ca6 /modules/tick/files | |
parent | 8f3c8ce6f76349e1181cf60e5b2ed17941675ef3 (diff) | |
download | puppet-tozt-7c784de79327fbc9fd62404d69fe6813f9c6f559.tar.gz puppet-tozt-7c784de79327fbc9fd62404d69fe6813f9c6f559.zip |
add input plugin for pacman updates
Diffstat (limited to 'modules/tick/files')
-rw-r--r-- | modules/tick/files/plugins/pacman | 4 | ||||
-rw-r--r-- | modules/tick/files/plugins/pacman.conf | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/tick/files/plugins/pacman b/modules/tick/files/plugins/pacman new file mode 100644 index 0000000..a466487 --- /dev/null +++ b/modules/tick/files/plugins/pacman @@ -0,0 +1,4 @@ +#!/bin/sh + +update_count="$( (yaourt -Qua || true) | wc -l)" +echo "pacman updates=${update_count}i" diff --git a/modules/tick/files/plugins/pacman.conf b/modules/tick/files/plugins/pacman.conf new file mode 100644 index 0000000..f7b8cb9 --- /dev/null +++ b/modules/tick/files/plugins/pacman.conf @@ -0,0 +1,3 @@ +[[inputs.exec]] +commands = ["/etc/telegraf/plugins/pacman"] +data_format = "influx" |