Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
MONIT to monitor all running "Services" and email when stoped?
« previous
next »
Print
Pages: [
1
]
Author
Topic: MONIT to monitor all running "Services" and email when stoped? (Read 1001 times)
lar.hed
Sr. Member
Posts: 323
Karma: 10
MONIT to monitor all running "Services" and email when stoped?
«
on:
December 01, 2023, 05:58:40 pm »
So I am trying to figure out (that is to learn) how to setup Monit to send me an email when one (or more for that matter, on email per services I guess) service fails(/stops).
But I can not wrap my head around how to do that. From the attached picture you can see all the services I am currently running - how do I in one Monitor instance (/row?) enable this? I can not test on stopped process as far as I am aware - and PID file will change from time to time. What or maybe more accurate where did I turn wrong?
Logged
thg0432
Newbie
Posts: 25
Karma: 3
Re: MONIT to monitor all running "Services" and email when stoped?
«
Reply #1 on:
December 01, 2023, 06:58:42 pm »
I just set this up for configd (it's been broken since I installed then removed sensei). Basically whenever I update opn or install a plugin...it stops then restarts configd...issue is it doesn't get restarted.
So monit watches the pid file...When it sees it's no longer there...after a minute it runs the service command.
Logged
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: MONIT to monitor all running "Services" and email when stoped?
«
Reply #2 on:
December 01, 2023, 07:52:12 pm »
Ah - I think I got it a bit better, however the igmpproxy does not have a pid - but someone else on this forum already solved that kind of, so I copied that for igmpproxy.
Thanks!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
MONIT to monitor all running "Services" and email when stoped?