NRPE Handle Redefinition of Checks
Posted: Sun Feb 05, 2017 4:48 am
Currently nrpe handles the redefinition of checks more by accident than design, and currently has some places were the ordering is undefined.
Within a single configuration file, the last definition of a check is the one used, as it is closest to the head of the command list and the search stops at the first match found.
However, when multiple files are searched with an "include_dir" statement, the order is undefined, or more correctly, the order readdir returns. It would be good if this order were defined, preferably in aphabetical order, similar to ls.
Within a single configuration file, the last definition of a check is the one used, as it is closest to the head of the command list and the search stops at the first match found.
However, when multiple files are searched with an "include_dir" statement, the order is undefined, or more correctly, the order readdir returns. It would be good if this order were defined, preferably in aphabetical order, similar to ls.