###############################################################################
#
# owl-commands.cfg - Commands required for monitoring DNS data for Owl Monitor. 
#
###############################################################################


#
# Handles Owl's DNS request data.
#
define command {
	command_name	owl-dnswatch
	command_line	$USER1$/owl-dnswatch $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

#
# Handles Owl's DNS request data, without updating the history file or
# the databases.
#
define command {
	command_name	owl-dnswatch-rotate
	command_line	$USER1$/owl-dnswatch -rotate $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

#
# Demonstrates how Hosts and Services can be defined.
# Same as owl-dnswatch, except it doesn't update the history file.
#
define command {
	command_name	owl-rrecdata
	command_line	$USER1$/owl-rrecdata $ARG1$ $ARG2$ $ARG3$
}

#
# Handles heartbeat data for Owl sensors.
#
define command {
	command_name	owl-stethoscope
	command_line	$USER1$/owl-stethoscope $ARG1$
}


#
# Handles heartbeat data for Owl sensors, but with specified limits.
#
define command {
	command_name	owl-stethoscope-limits
	command_line	$USER1$/owl-stethoscope -w $ARG1$ -c $ARG2$ $ARG3$
}


#
# Checks timestamp of most-recent update.
#
define command {
	command_name	owl-lastdata
	command_line	$USER1$/owl-lastdata $ARG1$ $ARG2$
}


#
# Dummy check for for Owl hosts.
#
define command {
	command_name	check-none
	command_line	$USER1$/check_dummy 0
}


#
# Service performance data for Owl services.
#
define command {
	command_name	service-perfdata-for-owl

	command_line	$USER1$/owl-perfdata "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"

}
