When enable password file for credentials not authorized in localhost

Issue #503 closed
inode64 created an issue

When use this syntax in command line "monit status" run fine

set httpd port 2812 allow localhost allow pepe:linux

But use a file. monit respond "You are not authorized to access monit......"

set httpd port 2812 allow localhost allow md5 /etc/monitrc.passwd

Comments (2)

  1. Tildeslash repo owner

    Monit CLI works via the http interface on client-server basis ... the CLI in client role needs to read the password so it can send it to the server - in the case of htpasswd file it's not possible.

    This limitation is documented in monit manual, https://mmonit.com/monit/documentation/monit.html#Authentication:

    If the Monit command line interface is being used, at least one cleartext password is necessary (see below),
    otherwise the Monit command line interface will not be able to connect to the Monit web interface.
    
  2. Log in to comment