regex matched but not matched
lejeczek via This is the general mailing list for monit <[email protected]> Mon, 7 Jul 2025 13:27:09 +0200
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------bL5Zo3GWS9TvZz3HfRHZi0A2
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Hi guys.
I do:
-> $ monit procmatch "^/usr/bin/conmon(.*?)-n
freeipa.mine.priv "
List of processes matching pattern "^/usr/bin/conmon(.*?)-n
freeipa.mine.priv ":
Total matches: 0
yet I have a monit file like:
check process freeipa.mine.priv.container with matching
"^/usr/bin/conmon(.*?)-n freeipa.mine.priv "
start program = "/usr/bin/podman start
freeipa.mine.priv" with timeout 30 seconds
stop program = "/usr/bin/podman stop
freeipa.mine.priv" with timeout 30 seconds
if 3 restarts within 5 cycles then alert
if 3 restarts within 5 cycles then timeout
and monit thinks, say:
-> $ monit status freeipa.mine.priv.container
Monit 5.33.0 uptime: 4d 6h 18m
Process 'freeipa.mine.priv.container'
status OK
monitoring status Monitored
monitoring mode active
on reboot start
pid 3617222
What is going on there? 'Pid' above, is of another
container's of name 'freeipa.mine.priv.c9s'
If @devel reads this - a bug?
many thanks, L.
--------------bL5Zo3GWS9TvZz3HfRHZi0A2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font size="2" face="Courier 10 Pitch">Hi guys.<br>
I do:<br>
-> $ monit procmatch "^/usr/bin/conmon(.*?)-n freeipa.mine.priv
"<br>
List of processes matching pattern "^/usr/bin/conmon(.*?)-n
freeipa.mine.priv ":<br>
Total matches: 0<br>
<br>
yet I have a monit file like:<br>
<br>
check process freeipa.mine.priv.container with matching
"^/usr/bin/conmon(.*?)-n freeipa.mine.priv "<br>
start program = "/usr/bin/podman start freeipa.mine.priv" with
timeout 30 seconds<br>
stop program = "/usr/bin/podman stop freeipa.mine.priv" with
timeout 30 seconds<br>
if 3 restarts within 5 cycles then alert<br>
if 3 restarts within 5 cycles then timeout<br>
<br>
and monit thinks, say:<br>
<br>
-> $ monit status freeipa.mine.priv.container<br>
Monit 5.33.0 uptime: 4d 6h 18m<br>
<br>
Process 'freeipa.mine.priv.container'<br>
status OK<br>
monitoring status Monitored<br>
monitoring mode active<br>
on reboot start<br>
pid 3617222<br>
<br>
What is going on there? 'Pid' above, is of another container's of
name 'freeipa.mine.priv.c9s'<br>
If @devel reads this - a bug?<br>
many thanks, L.<br>
</font>
</body>
</html>
--------------bL5Zo3GWS9TvZz3HfRHZi0A2--