Asking about monit behaviour when its disabled in systemd

Benny Kusman <[email protected]> Thu, 12 Jun 2025 08:11:23 +0000
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <AS8PR03MB9118B6DB119D95DFD3984C06FA74A@AS8PR03MB9118.eurprd03.prod.outlook.com>
--_000_AS8PR03MB9118B6DB119D95DFD3984C06FA74AAS8PR03MB9118eurp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear All,

Recently i have been observing a situation that needs your expertise.

When monit is in stopped/disabled state (in systemd), i observed this behav=
ior:

  1.
it's able to call "/usr/bin/monit start xxx"
  2.
It's unable to call "/usr/bin/monit stop xxx" and returning message: Monit:=
 the monit daemon is not running

Is there any reason why monit is able to perform "start", but not "stop" wh=
en the daemon is not running ?
I'm expecting that when monit daemon is not running, it's not possible to i=
nvoke start and stop command.

Thank you~


The information contained in this message, together with any attachments, m=
ay be privileged and confidential and is intended for the use of the addres=
see(s) only. Any review, copying, use or distribution of this email by othe=
rs (including any of its attachments) is strictly prohibited. If you are no=
t the intended recipient, please destroy this email and its attachments and=
 contact the sender immediately. This email was sent by EidosMedia SpA<http=
://www.eidosmedia.com>

--_000_AS8PR03MB9118B6DB119D95DFD3984C06FA74AAS8PR03MB9118eurp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
Dear All,</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
Recently i have been observing a situation that needs your expertise.</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
When monit is in stopped/disabled state (in systemd), i observed this behav=
ior:</div>
<ol start=3D"1" data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:f=
alse,&quot;orderedStyleType&quot;:1}" style=3D"margin-top: 0px; margin-bott=
om: 0px; list-style-type: decimal;">
<li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, C=
alibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class=3D"elementToProof" role=3D"presentation">it's able to call &quot=
;/usr/bin/monit start xxx&quot;</div>
</li><li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontServi=
ce, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class=3D"elementToProof" role=3D"presentation">It's unable to call &qu=
ot;/usr/bin/monit stop xxx&quot; and returning message: Monit: the monit da=
emon is not running</div>
</li></ol>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
Is there any reason why monit is able to perform &quot;start&quot;, but not=
 &quot;stop&quot; when the daemon is not running ?</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
I'm expecting that when monit daemon is not running, it's not possible to i=
nvoke start and stop command.</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
Thank you~</div>
<br>
<br>
<div style=3D"background-color:#FFFFFF; border:1px dotted #003333; padding:=
.8em; font-size:8pt; line-height:10pt; font-family: 'Cambria','Times New Ro=
man', Times, serif;">
The information contained in this message, together with any attachments, m=
ay be privileged and confidential and is intended for the use of the addres=
see(s) only. Any review, copying, use or distribution of this email by othe=
rs (including any of its attachments)
 is strictly prohibited. If you are not the intended recipient, please dest=
roy this email and its attachments and contact the sender immediately. This=
 email was sent by
<a href=3D"http://www.eidosmedia.com" style=3D"text-decoration: none; color=
:#0000FF">
EidosMedia SpA</a></div>
<div></div>
</body>
</html>

--_000_AS8PR03MB9118B6DB119D95DFD3984C06FA74AAS8PR03MB9118eurp_--