Nagios itself has the way to check its config file for validity, to ensure it would at least load the config without errors:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Is it possible to do the same thing for the NRPE daemon? The manual page for NRPE suggests it doesn't support that.
I intend to update the NRPE config with Ansible's lineinfile module, so I want to check for validity to be sure at least I don't break the monitoring completely.
Asked by Nikita Kipriyanov
(1779 rep)
Sep 26, 2022, 05:56 AM
Last activity: Sep 26, 2022, 04:22 PM
Last activity: Sep 26, 2022, 04:22 PM