Monit doesn't understand ssl or https

Roland Giesler <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <CAHvpkGZ1nRUpFfd=SvsLZYkh9jD7Gh4QmpJgb0kh98-Eux95ng@mail.gmail.com>
I have monit installed on Ubuntu 18.04 (some nodes are reporting to
M/Monit), but a few test nodes are not yet and I'm trying to figure out how
to monitor https services.

Firstly I'm trying to set the ssl option in /etc/monit/monitrc with:

 set ssl options {
     verify: disabled
 }

However, when I start monit with
~# service monit restart

I get this result:

 * Restarting daemon monitor monit
/etc/monit/monitrc:133: Error: syntax error 'ssl'

If I comment out the ssl configuration, I get an error at the first https
reference.

The content:

check host FishEagle-Production with address 192.168.0.22
    if failed host 192.168.0.22 port 443 protocol https
    and request "/login"
    with timeout 25 seconds
    for 4 times within 5 cycles
    then alert
#port 443 protocol https
#    if failed port 443 protocol https with ssl options {verify: disable}
then alert

The resulting error message:

~# service monit restart
 * Restarting daemon monitor monit
  /etc/monit/monitrc:338: Error: syntax error 'https'

So what could the problem be?  How can I check the https services?

thanks

Roland

-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.