I want to call a command directly from a Nagios service file, instead of passing arguments clumsily to commands.cfg. For example I want do this:
define service {
service_description footest
check_command $USER1$/check_http example.com -u http://example.com/index.html
use generic-service
host_name example
}
But I get a:
Error: Service check command '/usr/share/nagios/libexec/check_http example.com -u http://example.com/index.html' specified in service 'footest' for host 'example' not defined anywhere!