-
Notifications
You must be signed in to change notification settings - Fork 3
Description
This is a suggestion to improve usability of the check_php's plugin for Icinga2 users:
Whereas the startup and update checks work as expected and can be configured easily as custom check command, it proves almost impossible to creating a working CheckCommand definition for module, blacklist and config checks without loads of custom programming and workarounds. An argument can easily be created with multiple occurrences, but then it can only have one value, not two or three.
Therefore, it is desirable to having an option telling the script, that the multi-argument options are concatenated using a divider char (e.g. |) .
Then the command
$ ./check_php -m "mysql" "e" -m "intl" "w"
could be aliased by
$ ./check_php -d -m "mysql|e" -m "intl|w"
Or setting checks like
$ ./check_php -c "memory_limit" "256M" "w" -c "opcache.enable" "1" "w"
could be aliased by
$ ./check_php -d -c "memory_limit|256M|w" -c "opcache.enable|1|w"
Which is far easier to achieve using default commands / arguments in Icinga2.