pkg-nagios-plugins-contrib
pkg-nagios-plugins-contrib copied to clipboard
Fix check_mysql_health
Hello,
regarding to this Makefile the value of #STATEFILES_DIR# will be replaced with /var/cache/nagios.
This is not going to work, if you are using Icinga instead of Nagios or a local check via NRPE.
Please make sure that the check is using an already existing directory or let the package create the directory during the installation.
Regards, Dennis
Creating directories at install time won't help - according to the FHS you are not supposed to depend on stuff in /var/cache, it should be fine to empty that directory, at least at boot time. So the real(TM) proper fix sounds like using (/var)/run and creating the state files there. I guess it should be fine if they are gone after a reboot - but I did not check the code yet. Wanna send a patch? :)
Shouldn't it be /var/lib/ then? (/var)/run is about currently running stuff...
@dhoppe do you want to send us patches? PRs are also fine. :o)