pkg-nagios-plugins-contrib icon indicating copy to clipboard operation
pkg-nagios-plugins-contrib copied to clipboard

Fix check_mysql_health

Open dhoppe opened this issue 11 years ago • 3 comments

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

dhoppe avatar Dec 11 '13 15:12 dhoppe

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? :)

bzed avatar Jan 21 '14 00:01 bzed

Shouldn't it be /var/lib/ then? (/var)/run is about currently running stuff...

evgeni avatar Feb 14 '14 22:02 evgeni

@dhoppe do you want to send us patches? PRs are also fine. :o)

waja avatar Dec 04 '16 16:12 waja