Also, make it run less frequently (we're looking for expiry more than downtime)
and have a higher timeout (it seems to frequently take more than ten seconds).
command_name check_byssh_generic
command_line /usr/lib/nagios/plugins/check_by_ssh -l nagios-ssh -H '$HOSTADDRESS$' -C '$ARG1$'
}
+
+define command{
+ command_name check_byssh_generic_slow
+ command_line /usr/lib/nagios/plugins/check_by_ssh --timeout=30 -l nagios-ssh -H '$HOSTADDRESS$' -C '$ARG1$'
+}
check_command check_byssh_service!salt-master.service
}
+# Run against a different machine so I don't need to run monitoring as root
+# on a highly trusted machine.
define service {
- use adehnert-service
- host_name wieliczka
+ # Check infrequently, because this is really for expiry checking
+ use adehnert-rare-service
+ host_name bots
service_description SALT-VAULT
- check_command check_byssh_generic!check_salt_vault
+ # Often takes more than 10 seconds to run
+ check_command check_byssh_generic_slow!check_salt_vault
}