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
                                          
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to