[icinga-users] Case Sensitivity and check commandline order

Hans Scheffers hans.scheffers at outlook.com
Thu Aug 28 12:35:29 CEST 2014


Hi 

I am converting to icinga2 from icinga, but i got a few problems i don't know how to tackle.

My check definition:

Object CheckCommand "check_nrpe_win" {
  import "plugin-check-command"
  command = [ PluginDir + "/check_nrpe" ]
  arguments = {
    "-H" = "$address$"
    "-c" = "$command$"
    "-a" = "$arguments$"
    "MinWarn" = "$minwarn$ 
    "MinCrit" = "$mincrit$
    }
}

If I have in  my service definition:
  vars.command = "CheckDriveSize"
  vars.arguments = "Drive=C:"
....

the service returns critical; looking in the debuglog it looks like the commandline that is build is 

'<dir>/check_nrpe' '-H' '<host>' '-a' 'Drive=C:' '-c' 'CheckDriveSize' ....
giving an error: 
CRITICAL: Could not get free space for: -c -c reason: The system cannot find the path specified.

running as 
'<dir>/check_nrpe' '-H' '<host>'  '-c' 'CheckDriveSize' '-a' 'Drive=C:' ..... works like a charm

Can i influence the sequence of the parameters on the commandline, so the -c will be before the -a?

Hans Scheffers

AIX / Linux Systeembeheer
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20140828/bd378aad/attachment.html>


More information about the icinga-users mailing list