Debian Codegraph @

debian/tests/check-collectd

raw
1 #!/bin/bash
2 set -e
3
4 # service should be enabled and active after install
5 echo "Check service being active"
6 systemctl is-enabled collectd.service
7 systemctl is-active collectd.service
8
9 echo "copying config"
10 cp -f "${0}.conf" /etc/collectd/collectd.conf
11
12 echo "waiting for collectd restart"
13 systemctl restart collectd
14 sleep 5
15
16 echo "putting same fake values into collectd"
17 for i in $(seq 1 5); do
18 sleep 2
19 collectdctl -s /run/collectd-unixsock putval autotest/check-collectd/counter-date interval=2 "N:$(date +%s).0"
20 done
21
22 echo "getting it back"
23 collectdctl -s /run/collectd-unixsock getval autotest/check-collectd/counter-date
24
25 echo "running listval only for now"
26 collectdctl -s /run/collectd-unixsock listval