]> granicus.if.org Git - icinga2/commitdiff
Fix problem with option order of disk_wfree and disk_cfree
authorRalph Breier <ralph.breier@roedl.com>
Tue, 5 May 2015 11:36:37 +0000 (13:36 +0200)
committerMichael Friedrich <michael.friedrich@gmail.com>
Tue, 5 May 2015 16:59:38 +0000 (18:59 +0200)
If using the -r/-R option with check_disk, the command  expects the
warning and critical threshold on the left side of its position.
With order = -3 will be moved to the first position of all options.

fixes #9161

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
itl/command-plugins.conf

index 8ecd8e933646d8a957e65f8f4d6e2b0317b269f5..2b286494d0556fe3c70bd4932789aa059e7f1763 100644 (file)
@@ -633,12 +633,14 @@ object CheckCommand "disk" {
                        value = "$disk_wfree$"
                        description = "Exit with WARNING status if less than INTEGER units of disk are free or Exit with WARNING status if less than PERCENT of disk space is free"
                        required = true
+                       order = -3
                }
 
                "-c" = {
                        value = "$disk_cfree$"
                        description = "Exit with CRITICAL status if less than INTEGER units of disk are free or Exit with CRITCAL status if less than PERCENT of disk space is free"
                        required = true
+                       order = -3
                }
 
                "-W" = {