| Newsgroups |
gmane.comp.monitoring.monit.general |
| Message-ID |
<[email protected]> |
--Apple-Mail=_8B1B1BAC-A7A6-4825-A71F-75443FF1E1B8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Hi Christoph,
it's most likely caused by systemd settings for the monit service. For =
more details and a solution, see here:
=
https://bitbucket.org/tildeslash/monit/issues/1109/unable-to-monitor-php-f=
pm-unixsockets-on
Best regards,
Martin
> On 23. 11. 2025, at 13:38, Christoph Wagner <[email protected]> =
wrote:
>=20
> Hi,
>=20
> I have a issue when trying to run bash scripts from monit on Trixie =
that work just fine on Bookworm.
> The script configuration is really simple:
>=20
> check program backup path /srv/service/monit/check-backup.sh
> with timeout 1800 seconds
> every "0-5 15,17 * * *"
> if status !=3D 0 then alert
>=20
> The script is accessing some ressources from /root which seems to be =
impossible when being executed by monit:
>=20
> /srv/service/monit/check-backup.sh: line 5: =
/root/.local/bin/borgmatic: No such file or directory
>=20
> Running the script from a ssh session works just fine.
> I am probably missing something really stupid but I cannot figure out =
what's wrong and would appreciate any hint what I am doing wrong.
>=20
>=20
> Kind regards,
> Christoph
>=20
>=20
--Apple-Mail=_8B1B1BAC-A7A6-4825-A71F-75443FF1E1B8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dus-ascii"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;">Hi Christoph,<div><br></div><div><p =
style=3D"margin: 0px; font-width: normal; line-height: normal; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal;">it's most likely caused by systemd =
settings for the monit service. For more details and a solution, see =
here:</p></div><div><a =
href=3D"https://bitbucket.org/tildeslash/monit/issues/1109/unable-to-monit=
or-php-fpm-unixsockets-on">https://bitbucket.org/tildeslash/monit/issues/1=
109/unable-to-monitor-php-fpm-unixsockets-on</a></div><div><br></div><div>=
<br></div><div>Best =
regards,</div><div>Martin</div><div><br></div><div><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On 23. 11. 2025, at 13:38, Christoph Wagner =
<[email protected]> wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div>Hi,<br><br>I have a issue =
when trying to run bash scripts from monit on Trixie that work just fine =
on Bookworm.<br>The script configuration is really simple:<br><br>check =
program backup path /srv/service/monit/check-backup.sh<br> =
with timeout 1800 seconds<br> every =
"0-5 15,17 * * *"<br> if status !=3D 0 then =
alert<br><br>The script is accessing some ressources from /root which =
seems to be impossible when being executed by =
monit:<br><br>/srv/service/monit/check-backup.sh: line 5: =
/root/.local/bin/borgmatic: No such file or directory<br><br>Running the =
script from a ssh session works just fine.<br>I am probably missing =
something really stupid but I cannot figure out what's wrong and would =
appreciate any hint what I am doing wrong.<br><br><br>Kind =
regards,<br>Christoph<br><br><br></div></div></blockquote></div><br></div>=
</body></html>=
--Apple-Mail=_8B1B1BAC-A7A6-4825-A71F-75443FF1E1B8--