Show error if parameter incorrectly setted (percentage symbol) (#1237)

Adrián notifications at github.com
Wed Feb 12 11:00:02 CET 2014


If check_disk warning threshold is set incorrectly, "%20", check won't work,
but doesn't output any error:

Incorrectly behaviour:
```
/usr/lib64/nagios/plugins/check_disk -w %80 -c %10 /
DISK OK - free space: / 4482 MB (71% inode=86%);| /=1743MB;6559;6559;0;6559
```
Expected some error.

Correctly
```
/usr/lib64/nagios/plugins/check_disk -w 80% -c 10% /
DISK WARNING - free space: / 4482 MB (71% inode=86%);|
/=1743MB;1311;5903;0;6559
```


-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/issues/1237
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140212/fcc89180/attachment.html>


More information about the Devel mailing list