MT#58511 monit: check for unix socket instead of TCP port

As of git rev 511e1f69cc91 in templates (see "MT#58452 monit: Use a Unix socket for the httpd control access"),
monit no longer listens on port 2812 but uses a Unix socket instead.

Fixes:

| not ok 848 - Port: tcp:2812: listening: doesn't match, expect: [true] found: [false]

Change-Id: I9b16aac2ebbf14defdd2713f72c7362ab21d43b8
mr12.0
Michael Prokop 3 years ago
parent e8459d157b
commit 0a22accdc9

@ -91,3 +91,19 @@ command:
stdout:
- "[% is_mgmt && rest_api.enable == 'yes' ? '1' : '0' %]"
stderr: []
# monit no longer listens on port 2812 but uses a unix socket:
file:
/run/monit/monit.sock:
exists: true
mode: "0640"
size: 0
owner: root
group: root
filetype: socket
/run/monit/monit.pid:
exists: true
mode: "0644"
owner: root
group: root
filetype: file

@ -8,11 +8,6 @@
host_ha_iface = out;
-%]
port:
# Monit
tcp:2812:
listening: true
ip: ["127.0.0.1"]
# snmpd
udp:161:
listening: true

Loading…
Cancel
Save