index a2df1b933e7d89d316c3fa57c8360cbf486f4c2e..900db90c01519c00c93095fd5eae902c0a906a93 100755 (executable)
| grep -F '"other.host.name"' \
| grep -F '"some.host.name"'
+output="$( run_sysdb -H "$SOCKET_FILE" -c 'LIST services' )"
+echo "$output" \
+ | grep -F '"host1.example.com"' \
+ | grep -F '"host2.example.com"' \
+ | grep -F '"localhost"' \
+ | grep -F '"other.host.name"' \
+ | grep -F '"some.host.name"' \
+ | grep -F '"mock service"' \
+ | grep -F '"other service"' \
+ | grep -F '"database"' \
+ | grep -F '"example service one"' \
+ | grep -F '"example service two"' \
+ | grep -F '"example service three"'
+
output="$( run_sysdb -H "$SOCKET_FILE" -c "FETCH host 'host1.example.com'" )"
echo "$output" \
| grep -F '"host1.example.com"' \
run_sysdb -H "$SOCKET_FILE" \
-c "TIMESERIES 'invalid.host'.'invalid-metric'" && exit 1
+# Does not work yet since there is no fetcher plugin.
+run_sysdb -H "$SOCKET_FILE" \
+ -c "TIMESERIES 'some.host.name'.'foo/bar/qux'" && exit 1
+
stop_sysdbd