CheckNT

Andreas Ericsson ae at op5.se
Mon Nov 19 22:45:05 CET 2007


Jerad Riggin wrote:
> I am monitoring the CPU load with NSClient on a host.  Here is the
> service definition
> 
> define service{
>         use                             windows-service
>         name                            check-cpu
>         notification_options            w,u,c,r
>         check_command                   check_nt!CPULOAD!-l 5, 80, 90
>         register                        0
>         }
> 
> Here is the actual call to that service
> 
> define service{
> 	use				check-cpu
> 	service_description		CPU
> 	contact_groups			mis
> 	hostgroup_name			windows-clients
> }
> 
> Here is what I see in the nagios interface
> 
> CPU OK 11-19-2007 14:56:07 122d 2h 7m 2s 1/5 not enough values for -l
> parameters
> 
> Any ideas?
> 

Off the top of my head, you're not passing enough values for the -l
parameter.

On a more serious note, arguments are split by spaces when parsed by the
shell. Remove the ones that are trailing the commas in the check_command
line and it'll work just fine.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list