Can't set empty 'admin' config option
Brought to you by:
meskes,
paulcrawford
The watchdog.conf file can have an 'admin' parameter. The man page says "If you want to disable notification via email just set admin to en empty string." However, it seems not possible to do this. I get an error:
Ignoring invalid line in config file:
admin =
Looking in the code, it seems there is code to check if admin == NULL, however it is impossible to put anything in the config file to set admin to NULL I think.
Hi Craig, this is something that was already fixed in a rather more complex bit of file parsing code that I used for my own version. As it also provides a much stronger checking of variable use (both at compile-time, and when reading the configuration file) I have ported it to the current GIT repository.
However, as it has added some new source files you will have to do the following to get the latest all compiled OK (assuming you start in the main directory of the GIT clone):
git pull
autoreconf -i
./configure
cd src
make clean
make
Let us know how you get on with this version, and if it causes any problems. It seems to work fine for me on Ubuntu 10.04 to 14.04
Regards, Paul
Thanks, I've tested this and it seems to be working well.
OK, good to know this can be closed.