check_nt: Could not parse arguments

I’m having trouble checking anything on my windows-servers, all the linux-servers work just fine, but no matter what I try I get "check_nt: Could not parse arguments " in nagios’ web interface.

The service for the host is:

define service{
use generic-service
host_name hostname
service_description CPU Load
check_command check_nt_cpuload!60!80!12489
}

and the command:

define command{
command_name check_nt_cpuload
command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS -v CPULOAD -l $ARG1$,$ARG2$,$ARG3$ -p $ARG4$
}

Any ideas would be greatly appreciated :slight_smile:

Thanx

<bla!>

you forgot a $ after HOSTADDRESS in your command_line :slight_smile:

Replace with this:
command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -v CPULOAD -l $ARG1$,$ARG2$,$ARG3$ -p $ARG4$

Also, you’re passing 3 arguments to check_nt (!60!80!12489) when your command_line argument wants 4 (3 load values, then a port number). Modify the check_command entry in your service definition as necessary!

Hope this fixes it

Jeeez, I’m feeling stupid right now…gotta remember that it’s not a bash script…
Thanx for pointing it out, solved all my problems straight away :slight_smile: