You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call check without any arguments. should return an error message
[root@pdns ~]# /opt/sensu/embedded/bin/check-systemd.rb
CheckSystemd CRITICAL: You must define services to check!
[root@pdns ~]#
Call check with -h Paramter. should print usage/help
[root@pdns ~]# /opt/sensu/embedded/bin/check-systemd.rb -h
Usage: /opt/sensu/embedded/bin/check-systemd.rb (options)
-f, --failed all services are being checked. One or more failed => CRITICAL
-i, --failed-ignore SERVICES comma seperated list of services which should be ignored when using --failed mode
-s SERVICES comma seperated list of services to check. ignored if --failed is set
[root@pdns ~]#
Call check -s with a healthy running service as param. should return status "OK"
[root@pdns ~]# /opt/sensu/embedded/bin/check-systemd.rb -s pdns.service
CheckSystemd OK: All services are running
[root@pdns ~]#
Call check -s with a failed/stopped service as param. should return status "CRITICAL"