[setup_monit.php] Error with mariadb monit config

Discussion in 'Plugins/Modules/Addons' started by pzajda, Sep 8, 2023.

  1. pzajda

    pzajda Member HowtoForge Supporter

    Hello,

    I would like to reconfigure Monit to manage all installed services on my Debian Bullseye running ISPConfig3.
    After running setup_monit.php from this tutorial, the restart fails with this message:

    Code:
    /etc/monit/conf-enabled/mariadb:6: The number of events must be between 1 and less then poll cycles '2'
    
    What should I do to solve this error?
    I have not found anything helping, it seams I should use set-daemon option but I don't find how to specify it.

    It also looks like I failed with monitoring SSH because I don't use DSA key and replacing it by ed25519 does not help.

    Thanks.
     
  2. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    In the line
    Code:
    if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 3 times within 2 cycles then restart
    times is not allowed to be higher than cycles!
     
    pzajda likes this.
  3. pzajda

    pzajda Member HowtoForge Supporter

    OK, so I modified it to be
    Code:
            if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 3 times within 4 cycles then restart
    And it works.
    Maybe it would be better to put same value for both, I did as I wrote because if it fails 3/4 times it looks problematic.

    Thanks a lot.
     
  4. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    I submitted the suggestion for the ISPConfig AutoInstaller to
    Code:
    ... 3 times within 4 cycles
    some time ago.
    I have now made the same suggestion to the Tools:
     
    Th0m and pzajda like this.
  5. pzajda

    pzajda Member HowtoForge Supporter

    I was just looking for existing issue/PR before doing it, you have been faster than me :)
     

Share This Page