Menu

#14 Can't set empty 'admin' config option

v1.0 (example)
closed
nobody
None
5
2015-12-22
2015-12-01
No

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.

Discussion

  • Paul Crawford

    Paul Crawford - 2015-12-01

    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

     
  • Craig McQueen

    Craig McQueen - 2015-12-21

    Thanks, I've tested this and it seems to be working well.

     
  • Paul Crawford

    Paul Crawford - 2015-12-22

    OK, good to know this can be closed.

     
  • Michael Meskes

    Michael Meskes - 2015-12-22
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB