Skip to content

Instantly share code, notes, and snippets.

@EugenMayer
Created April 26, 2012 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EugenMayer/2497966 to your computer and use it in GitHub Desktop.
Save EugenMayer/2497966 to your computer and use it in GitHub Desktop.
define command {
command_name check_dummy
command_line /usr/lib/nagios/plugins/check_dummy 0
}
define service{
use generic-service
hostgroup_name remote-hosts
service_description Chef client run status
check_command check_dummy
active_checks_enabled 0
}
---
Apr 26 11:21:49 monitoring nsca[21096]: SERVICE CHECK -> Host Name: 'support.o.kw.lan', Service Description: 'Chef client run status', Return Code: '2', Output: 'Start:Thu Apr 26 11:21:43 +0200 2012#011Time:4.167185#011Updated:28#011All:92'
Apr 26 11:21:49 monitoring nsca[21096]: Command file '/var/lib/nagios3/rw/nagios.cmd' does not exist, attempting to use alternate dump file '/var/run/nagios/nsca.dump' for output
Apr 26 11:21:49 monitoring nsca[21096]: Could not open alternate dump file '/var/run/nagios/nsca.dump' for appending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment