Hello David,
you are right, the Debian Monit samples are nice.
> Definitely some gotchas here! But I can't blame the Debian Monit
> maintainer - my monitrc file is pretty much unchanged for over 20 years
> on a different system.
No idea what's going wrong based on your investigation,
Lutz
Hello David,
a question, have you done tests with an additional username and password
to authenticate the socket used in the test?
> https://mmonit.com/monit/documentation/monit.html#MYSQL
Sorry a question only,
Lutz
Am 25.07.24 um 01:25 schrieb David Fletcher:
> Hi,
>
> After tracing an issue
Sorry
> what route is it on?
You find the executable in folder /usr/bin or /usr/local/bin,
use "which" to find the monit file.
# which monit
/usr/local/bin/monit
Lutz
Am 30.05.24 um 21:32 schrieb Lutz Mader:
> Hello Jordi Delgado,
> you should start "bin/monit -
Hello Jordi Delgado,
you should start "bin/monit -h" to test you system is supported by the
mew monit release.
Based on monit 5.3x.0 the old configuration should fit, but you can
tests the configuration with "bin/monit -t your/old/monitrc".
To migrate to the new release:
Stop monit.
Copy the new
> other implications!
>
> Many thanks,
>
> Graham
>
>
>
> On Thu, 23 Nov 2023 at 09:39, Rory Toma wrote:
>
>> Worst case, use WSL on windows to run monit.
>>
>> -Original Message-
>> From: monit-general-bounces+rory=trs80...
Hello Graham,
and MacOS systems are supported also.
Lutz
is M/Monit to monitor all systems centrally.
Am 23.11.23 um 09:28 schrieb Lutz Mader:
> Hello Graham,
> as long as the desktop systems are Linux systems, the simple answer here
> is M/Monit to monitor all systems centrally.
>
Hello Graham,
as long as the desktop systems are Linux systems, the simple answer here
is M/Monit to monitor all systems centrally.
> Any ideas or strategies?
On the other hand, I use a similar approach to yours to monitor
applications on other systems (I check the availability of a port) to
star
m"
"BasicAuthOverHttpEnabled"=dword:
And see some more details in
https://learn.microsoft.com/DeployEdge/microsoft-edge-policies#basicauthoverhttpenabled
https://learn.microsoft.com/DeployEdge/microsoft-edge-policies#authschemes
Lutz
Am 17.10.23 um 19:25 schrieb Lutz Mader:
&
t;http" in the company network
only.
Nice to know,
Lutz
Am 16.10.23 um 07:53 schrieb Mesut GULNAZ:
> I have also tried it.
> I also tried EDGE, opera, and chrome. not working at all.
> so I configured it to HTTPS instead of HTTP. so all is working but
> interesting.
> than
Hello Mesut,
the message based on the basic authentication request.
The browser should open the login window,
try https://user:p...@your.host:2812 to login to the Monit web interface.
A suggestion only,
Lutz
p.s.
See https://en.wikipedia.org/wiki/Basic_access_authentication
for some additional in
Hello Daniel,
I had used M/Monit up to 3.7.3 on a MacOS only,
but I copied the mmonit/db and mmonit/conf folder only to a new system,
to move to a new system. Have a look to the server.xml file and check
some of the options/settings.
Miration of a Sqlitedb to a Postgres is supported by the migrate
Hello Mesut,
This is the way how Monit handle the alert statement, see
https://mmonit.com/monit/documentation/monit.html#Setting-an-alert-recipient
You can set the alert target (a email) using the global "set alert" statement or the
"alert" statement in the context of a service entry. But you c
f there is a similar restart action or even reboot for the
> system itself? So something like this:
>
> check system $HOST
> if loadavg (15 min) > 4 then restart/reboot
>
> Currently I'm just using a script that does 'sudo reboot', but I was
> wondering if th
Hello again Leonard Teng,
I can not find an auto renewal for client certificates.
> Are there currently any implementations/solutions for auto
> renewal of client certificates when they become invalid or expired?
To renew an expired client certificate, you must create and add a new
key client and
Hello Leonard Teng,
to the second question, you can use different cycles based on the given
cycle interval.
> 2) Is monit able to perform different polling cycles for different
> processes organically?
See my sample.
>> check system $HOST
>> every 5 cycles
>> if cpu usage > 95% for
Hello Leonard Teng,
from my point of view monit is not the problem sometimes.
> I just wanted to inquire on whether monit is guaranteed to perform service
> restarts in high CPU/RAM usage situations?
>From the monit point of view, monit can handle low free RAM or RAM
shortage, but restarts can n
Hello,
are you aware of the suggestions to use Pushover or Slack,
see https://mmonit.com/wiki/Notification/Notification
With regards,
Lutz
-ursprüngliche Nachricht-
Von: ciprian.crac...@gmail.com
Gesendet: 21.08.2022 23:51 Uhr
An: monit-general@nongnu.org
Betreff: Re: Any open-sourc
his only for some
> checks, so "only on" wouldn't work for my case, as it affects all
> checks. Unless I misunderstood your answer.
>
>> You can override the "remainder" in the "then alert" statement also.
>
> could you please show an examp
Hello Aleks,
as long as you would like to use the exceptional cases all the time, you
can use "only on" with the alert. The event "nonexist" is used for
service down/up.
For some more information see
https://mmonit.com/monit/documentation/monit.html#Setting-an-alert-recipient
A suggestion only,
L
Hello Anthony,
as long as you know something about the data, you can use an addition
"content" test to do some more detail tests.
> I’m just hitting the index api page which returns some static json. If the
> api crashes that would not return a 200. Usually systemd restarts it but not
> always.
Hello Anthony,
monit does not know the process, you are using check host.
> One thing I'm not sure about is how monit knows which systemd service to
> restart. I haven't specified it anywhere.
But systemctl should know the right proces/application.
With regards,
Lutz
p.s.
Only check process col
Hello Anthony,
someone try to get status information from a process tree, but it does
not work.
> Anyone know what these are caused by? I'm on Ubuntu 20.04 with default
> install
>
> [PDT Jun 27 05:14:27] debug: Cannot open proc file '/proc/930126/stat'
> -- No such file or directory
> [PDT J
Hello Anthony,
as long as you are sure the http status is 200, you can use this.
> This is what I have now, but I don't know if its correct:
>
> check host grazily.com with address grazily.com
> start program = "/bin/systemctl start grazily-api"
> stop program = "/bin/systemctl st
Hello Anthony,
see the way Maik suggested or see
https://mmonit.com/wiki/Monit/ConfigurationExamples#apache
for some more useful hints.
You can use "curl" in a script used in a "check program" service.
But monit can do the job also, see
https://mmonit.com/monit/documentation/monit.html#CONNECTION-
Hello Jej,
this is good point of view, to handle all statements in a similar way.
> I cannot tell if it has sens or not regarding any possible use case, but at
> least a test and it's negation have always a sens
Wait for an more detailed explanation from Tildeslash (or Martin).
With regards,
Lu
Hello Jej,
from my point of view it make no sense.
> Any reason why IF CHANGED CHECKSUM does not support the ELSE? Of something
> like IF NOT CHANGED CHECKSUM.
Alerts are thrown if something changed. If nothing happen, no alert will
thrown. An alert for nothing make no sense.
But this is just m
Hello Jej,
the short answer to your question, the statements
IF FAILED CHECKSUM support an ELSE but
IF CHANGED CHECKSUM does not
see https://mmonit.com/monit/documentation/monit.html#FILE-CHECKSUM-TEST
A simple sample
check file File with path "/Users/lutz/test.txt"
if not exist for 3 cycles the
Hello A. Aniruddha,
have a look to log.c and monit.h.
You will find the _log function and the define TIMEFORMAT macro.
But I never changed the log behaviour.
>> milliseconds are not available and the format can not changed in the monitrc
>> file.
> Ok, Thanks Lutz.
>
> I am trying to add a LD_PR
Hello A. Aniruddha,
the log format was changed with newer Monit versions.
[2022-05-06T13:33:35+0200] info : Monit daemon with PID 220475 awakened
[2022-05-06T13:33:35+0200] info : Awakened by User defined signal 1
But the timestamp use seconds only, milliseconds are not available and t
Betreff: Re: trouble with responsetime keyword
Yep, your point about the error message is true, we've modified it already:
bitbucket.org/tildeslash/monit/commits/87b6d16129451ebc0794b28791be77503a3415f1
Best regards,
The M/Monit team
> On 4. 5. 2022, at 8:30, Lutz Mader wrote:
>
>
Hello M/Monit Support,
the state is the right state.
> Similarly to the other statement, the "if failed" rule defines the normal
> state, that triggers the error if the expression is not true.
The message text in the log does not fit, from my point of view, if the
comparsion was changed from "<"
Hello M/Monit Support,
nice to see, but the messages does not fit well, I think.
For my definition
check host Localhost with address 192.168.1.4
if failed port 8081 protocol http and responsetime > 1 ms then alert
I got the following
[2022-05-03T21:49:03+0200] debug: 'Localhost' succeeded t
Hello Noel,
you are right.
The syntax of your first sample should be right, see
https://mmonit.com/monit/documentation/monit.html#NETWORK-PING-TEST,
but does not fit to the p.y definitions (I think).
Your second sample confuse me, with a look to _checkConnection (in
validate.c) the "Event_post(s,
Hello Mike,
you are using a shebang with "#!/usr/bin/env", this does not work well,
see https://mmonit.com/monit/documentation/monit.html#SERVICE-METHODS
Try to use a shebang pointing to the bash and not to env.
A suggestion only,
Lutz
Hello,
nice to know, I try to find a test environment also,
but 200 should be ok. Do you try to test the connection without the
suggested header options also.
Status description
100 Continue
101 Switching Protocols
103 Early Hints
200 OK
Status 101 confirms the protocol change only. For a connect
.fr-emoticon.fr-emoticon-img {
background-repeat: no-repeat !important;
font-size: inherit;
height: 1em;
width: 1em;
Hello Luca Cazzaniga,
thanks for your answer, response. I can not reproduce my problems too,
but the problem will came back from time to time, on some of my systems.
> In our case the server was just restarted and the problem had persisted all
> over the week end. The annoying part is that no aler
Hello Luca Cazzaniga,
you analysed the problem well, I think. Sometimes I got the same
problem, but this depend to a very high workload on the system (Linux
and AIX).
> hi there, recently after a server reboot I found the following
> messages in the monit log, repeated every cycle..
>
> [CET Nov
Hello Carlos,
have a look to the monit log file, this should give some useful information.
> My question is:
>
> I am seeing workers being killed after 2 cycles.
> Is it intentional as the check on group unicorn_myapp is in some kind
> overwriting the later ones?
>
> What I may be missing?
The
Am 19.07.21 um 03:02 schrieb Uma Shanmuganathan:
> Thank you. But in this case there is no password and no certificate.
> Should I remove and leave as blank or configure [password ""]
>
> Regards
> Uma S
>
> On Sun, 18 Jul 2021, 22:11 Lutz Mader, wrote:
&
Hello Uma,
you can use the following, see
https://mmonit.com/monit/documentation/monit.html#Setting-a-mail-server-for-alert-delivery
To add a propper setting to your monitrc.
With regards,
Lutz
> I have email account without password and certificate, what is the syntax
> to set alert mails.
>
>
Hello sashk,
you can not do this, without a mail relay are modifying the sent mails.
See https://mmonit.com/monit/documentation/monit.html#Message-format
for some more samples.
With regards,
Lutz
> Hi,
>
> I would like to shorten the subject line on some emails from monit. i.e
> replace
> $EV
Hello Craig,
you can not change the monit configuration dynamically via monit commands.
> Eventually this will trigger the timeout rule, but in this case if, when
> monit sees the buffer stalled message, it could switch to a much shorter
> timeout, it would greatly improve the system. once the rec
Hello Mike,
you are right, if there are some forks then this is the only/best option
and is easy/safe to implement.
> The issue I have with checking the app itself is that it forks into many
> different children to perform the work so no single app is using all the
> CPU. What I want to check for
Hello Mike,
if the application is known you should look to the samples too.
>> But you can check a specific application also, see
>> https://mmonit.com/monit/documentation/monit.html#CONFIGURATION-EXAMPLES
Based on the following sample (from Configuration Samples)
> check process apache with pid
Hello Mike,
you can do this.
> Thanks for the script Mark. I'm not sure it suits my needs. I essentially
> just want to know if Monit can do something like:
>
> check system $HOST
> if cpu usage (system) > 20% for 2 cycles then $restart_a_given_app
check system $HOST
every 5 cycles
# if l
rding on the actual alerts.
>
> Thanks,
> -Mark
>
> -Original Message-
> From: monit-general On
> Behalf Of Lutz Mader
> Sent: Thursday, January 14, 2021 15:17
> To: This is the general mailing list for monit
> Subject: [EXTERNAL] Re: No alert on success
&
Hello,
sometimes monit need a second cycle to get the script status, for some
detail information see
https://mmonit.com/monit/documentation/monit.html#PROGRAM-STATUS-TEST
> Thank you for your answer. For some reason, for me 'script' status
> succeeded (0) message shows up only in the end of secon
Hello Mark,
you can use the following alert settings only, see
https://mmonit.com/monit/documentation/monit.html#Setting-an-alert-recipient
Unfortunately, there is no option to disable the "Failure" or the
"Success", "Changed" state in Monit itself.
> Can I disable success alerts? I only care ab
Hallo,
based on your sample
check program script with path "/usr/local/etc/monit/scripts/test.sh"
start program "/usr/local/etc/monit/scripts/test.sh start"
stop program "/usr/local/etc/monit/scripts/test.sh stop"
if 2 restarts within 10 cycles then alert
if status != 0 then restart
and m
Hello Aaron,
based on your ticket/issue sample, this looks similar to the my test case.
check program test-program path /Users/lutz/monit/scripts/test.sh
timeout 10 seconds
every 20 cycles
depends on test-file
if status !=0 then exec "/Users/lutz/monit/scripts/env.sh"
else if succeeded
Hello Aaron,
yes, at the time you can not use "every" multiple times in a service
configuration.
> It sounds like there isn't currently a way for me to control both the
> 'cron' and cycle-based timing of a service, is that correct?
Implicitly you can use a second service configuration to depend t
Hello Aaron,
you see what monit will use by using "monit -v".
> The more I think about this, the more I think I might consider it a bug one
> way or the other: Maybe I'm missing something, but it seems to me like
> monit should either raise an error when you supply multiple 'every'
> statements (a
Hello Aaron,
you are using a variant of a statement multiple times, the last one will
be used therefor. See
https://mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIME for
some more information.
But, if you use "every 2 cycles" in a service, all services depends to
this service are checked
Hello Luca,
no problem.
> hi Lutz, thanks again for all your suggestions and time.
> I'll try to submit the proposal request.
> I need sometime to refresh my c skill and study better the source.
> the wiki is great. thanks for sharing your know-how.
You can explain your problem and someone will t
Hello Luca,
unfortunatly, my way does not collect the start/stop messages with
monit. The status information are collected only.
> hi Lutz, a good workaround, it gathers messages regarding the status,
> but my aim was collecting messages/status of the actual execution of
> start/stop program, alth
Hello Luca,
I use one script for all.
> And you need to set up two check program if you want to start stop your>
> service using monit, maybe too machinary.. do you mean that?
But my scripts deal with start/stop/status and restart in general and I
get useful status codes. But you are right (sorry
Hello Eric,
you can not use scripts are running in an infinite loop.
The script must spawn or you wrapper script should do this.
> I have a (legacy) shell script that I need to call from monit. This shell
> script runs an infinite loop.
A good source are the scripts used with systemd or initd.
Hello Luca,
yes, sometimes I missed some script/program output too.
For some scripts I am interresting in the output I use "check program".
This works well and support "start program" and "stop program" and you
can use the script status check to test the application as long as you
get a useful sta
Hello,
are you do some tests with the monit options -v or -vv to get the additional
information you are interrested in?
These options enables a verbose mode inside monit and report some more
information to the log file.
A sugestion/question only,
Lutz
Hello Gabriel,
it does not work, see
https://mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIME
The (not) every rule (disables) enables the monitoring for a given time
interval. You disable the file check for a hour, but monit knows the
last checked line and restart the check at this line
Hello Ani,
I checked some of my logs and find a similar problem all the time the
workload is very high (on a AIX system).
[MESZ May 8 05:29:14] error: 'D100SPUABC00' mem usage of 95.5%
matches resource limit [mem usage > 95.0%]
[MESZ May 8 05:31:14] error: 'Manager' failed to get process
Hello Ani,
are you able to check this behaviour based on Monit 5.27.1.
The way to get the process information was changed with Monit 5.26.0.
> Monit version 5.25.1 on Ubuntu 18.04.4.
>> I am running Monit 5.17.1 on Ubuntu 14.04, in some rare occasions
>> I see that following error in the log:
>>
>
Hello Jan-Henrik,
the "Initializing" state persist for one monitor cycle only, with Monit
5.26.0 or Monit 5.27.0.
> The problem might be related to a monit reload race condition [1] which was
> fixed in Monit 5.27.1.
>
> 1. https://bitbucket.org/tildeslash/monit/issues/928
I do similar things
Hello,
this is a typo only.
> Thanks for this snippet. I noticed you listed two separate hosts (macbook.and
> macbookpro.local).
I use the local macbook host name to bind to and check this name.
> check host Monit with address macbookpro.local
> start program "/usr/local/bin/monit reload"
>
Hello David,
I use monit on a Macbook, this works well.
> It seems like Monit would do just fine with a config that said “ping this
> address and if you have N failures in time T (or cycles), cycle the
> interface”. My only concern is how it might handle situations when the laptop
> sleeps or p
Hello sashk,
based on monit you can not, monit send a mail for each alert.
Lutz
Am 04.09.20 um 18:16 schrieb sashk:
> Hi,
>
> I've got multiple checks per host and when host is down, or host has multiple
> alerts, I end up receiving multiple emails per host. Is there a way to
> combine them in
Hello Ciprian,
this is a useful setting.
> My conclusion: the "correct" setting should be `mode passive onreboot
> laststate`.
As long as you are aware that all services are "stopped"/"not monitored"
not monitored again. But you should get no problems because you said
monit is used for monitorin
Hello Ciprian,
nice to see what is going on.
> Once I experiment I'll report back.
This is one of my services with "mode passive".
check process Gen_lfbw matching "\/bin\/[Jj]ava.*genservers\/lfbw\/"
start program "/usr/local/etc/monit/scripts/genlfbw.sh start" with
timeout 60 seconds
stop p
Hello Ciprian
you are not in a deadlock, as long as you define "mode passive" for a
service monit does not restart the service but send an alert.
> However it seems I'm in a deadlock... I do want commands to be able
> to use the UI as a simple controller, but I don't want Monit to
> automatically
Hello Ciprian,
you are rigth.
The status "Not monitoring" means ignore the resource.
The status give the information the monitoring mode is "active". But
with "mode passive" the monitor mode became "passive".
For example
Remote Host 'SVNServe'
status Not monitored
monito
Hello Ciprian,
to disable all automatic restarts by monit I use "mode passive" only.
> At the moment I explicitly set for all my services and items `mode
> passive onreboot nostart` because I don't want Monit to start / stop
> any services; I just want Monit to monitor and report.
Monit do not s
Hello Ciprian,
I will have look to
https://software.opensuse.org/download/package?package=monit&project=openSUSE%3ALeap%3A15.1
> I am using the distribution specific package. Although the patches
> added by OpenSUSE are minimal according to their build and they
> involve mainly the configuration
Hello Ciprian,
are you using one of the distribution specific monit packages or the
tildeslash monit package.
> I'm using Monit 5.25.1 (on OpenSUSE 15.1), and I sometimes encounter> the
> following strange issue: either on restarting monit (via>
`systemd`) or rebooting the system I sometimes hav
Hello sashk,
sorry, no, I think.
The only way to combine services is an additional service with a
"depends on" statement. But this additional service will be monitored
with the slowest cycle rate only.
To combine cycle rates in one service is not possible.
With regards,
Lutz
> Hi,
> I have a qu
Hello Norbert,
I start using monit some years ago, based on 5.15/5.16.
> Has there been some considerable changes in how the http server access
> works?
I can not give some more detail information about the very old versions.
Good luck, to migrate your old configuration and scripts.
With regards
Hello Norbert,
I append some sample scripts to get the summary, the status or do some
actions on monit to the mail. Have a look to use the right user and
password, the samples use "admin" with "monit", the port is 2812.
summary.sh host [service]
status.sh host [service]
doaction.sh host start|stop
Hello Norbert,
your problem, this is for M/Monit the central Server for Monit.
> A bit of search brought me to
> https://mmonit.com/documentation/http-api/Examples/cURL
> which seems exactely what I want to do, alas, the very first invocation
> given
> Could someone please explain how to se
Hello,
no problem, with Ubuntu 18.04 you should start with monit 5.27.0.
To minimze your work on the old Ubunto 14.04 you can use monit 5.19.0.
The monit 5.19.0 support the old glibc and kernel used on some old systems
(like Sles 11) and the configuration changes are minimal or none regardin
Hello,
from my point of view Ubuntu 16.04 should support the newest version, monit
5.27.0.
Several old and new monit packages are available on
https://bitbucket.org/tildeslash/monit/downloads/
or you get the latest version from https://mmonit.com/monit/
These are tar.gz archive files and b
Hello,
have a look to the man page from monit 5.16, the wiki is for monit 5.27.0.
The problem is, monit 5.16 use a different syntax
Taken from an old manual:
Syntax for TCP port:
SET HTTPD PORT [ADDRESS ]
[SSL ]
[PEMFILE ]
[CLIENTPEMFILE ]
[ALLOWSELFCERTIFICATION]
[SIGNATURE ]
ALLOW +
Hello Anders Yuran,
add some more lines from the monitrc file please, above/below the line.
And give some information about the used monit version, use "monit -V"
to get this information.
With regards,
Lutz
p.s.
Some details for the setup are available in the wiki, see
https://mmonit.com/monit/do
Hello Eric,
are you using the command to reload in the same user context you used to
start monit.
> I didn't have luck calling 'monit reload' from within monit.
All the time I try to reload the configuration from a different user, I
get an error message (I use MacOS).
Reinitializing monit daemon
ges/man7/inotify.7.html
>
> Could you also please confirm that it is reasonable to send a SIGHUP to
> monit from monit itself?
>
> Also, thank you for monit -- it's a terrific tool.
>
> Best,
> Eric
>
>
>
> On Mon, May 18, 2020 at 5:53 PM Lutz Mader wrot
quot;.
>
> Best,
> Eric
>
>
>
>
> Eric Montellese
> EME, Inc.
> 434-987-6124
> emeforward.com
>
>
> On Sun, May 17, 2020 at 10:56 AM Lutz Mader wrote:
>
>> Hello Eric,
>> you can use monit to monitor the config folder.
>>
Hello Leif,
it is more easy to monitor the config folder, where the configuration is
stored.
> Could you use the "check program" functionality?
Or you monitor the monitrc file, if the whole config is in the monitrc file.
With regards,
Lutz
Hello Eric,
you can use monit to monitor the config folder.
> One option that we've tested is to have a separate process (or wrapper)
> that runs inotify on the configuration files, and sends SIGHUP to monit if
> a change is detected. This works, but it seems a shame to add a separate
> monitor f
Hello Eric,
are you interresting in doing an config reload only.
> I'm working on a project that would like the ability to re-load the monit
> configuration automatically when it changes.
I do monitoring some application server folder to find new application
to be configured to monit and add the
Hello Ani,
no, you should delete the status file only once, after you change the
monit version. To do this, monit must stopped. With the next monit
startup, the status file will created again.
>> You can stop monit and delete the monit status file. After you start
>> monit again, the status file w
Hello Ani,
are you installing a new version, are you updating some times ago?
> I am running Monit version 5.17.1 on Ubuntu 14.04. At times, I see
> that Monit has logged the following:
>
> [PST Nov 14 15:42:40] warning : State file '/var/lib/monit/state':
> incompatible version 2
You can stop
Hello Guillaume,
nice idea, but monit can not do this. Monit handle the current status
code only.
Based on the sample
check program hwtest with path /usr/local/bin/hwtest.sh
with timeout 500 seconds
if status = 1 then alert
if status = 3 for 5 cycles then exec "/usr/local/bin/emergency
Hello Marcus,
you are right.
> I "feared" as much. As usual, a script is the way to go. Alas, I was
> hoping for something ready-to-go.
Feel free to open an issue/ticket and ask the team to implement a
corresponding feature. This succeeds sometimes when a feature is deemed
useful.
I also missed
Hello Marcus,
monit does not handle times or cycles with the match/content test,
unfortunetely.
With regards,
Lutz
p.s.
See my issue/ticket:
check file doesn't handle the times/cycles setting
https://bitbucket.org/tildeslash/monit/issues/822/check-file-doesnt-handle-the-times-cycles
Feel free to
Hello Josu,
are you using Monit 5.25 or 5.26 (use "monit -V" to check this)?
You are right, the filesystem check doesn't support "does not exist",
but check directory does.
> check filesystem tvdata with path /mnt/tvdata
> if not exist then exec "/bin/mount -a"
Based on you snipped, the direct
Hello,
> I must say I do not understand what you are doing here.
I use a dummy process and add some simple host tests to check some site
addresses.
> Can you tell more about what you do to avoid getting many alerts?
My central tool avoid resending alerts/notifications for a service, but
monit re
Hello,
the answer is no, I think.
> I want to monitor several sites on the same host, both http and https,
> but I want to get only one alert when there is a problem. Is that possible?
But you can use a dummy service with multiple failed host tests.
check process Server matching "sleep"
start
Hello David,
nice idea, have a look to
https://mmonit.com/monit/documentation/monit.html#UPTIME-TEST
https://mmonit.com/monit/documentation/monit.html#EXIST
Try to combine "exits" and "uptime" to stop a running process.
check process sleep matching "sleep"
start program "/bin/ksh -c '/bin/echo
Hello Dave,
a process uptime test ist available, see
https://mmonit.com/monit/documentation/monit.html#UPTIME-TEST
The uptime test is availabel for the process and system service
definitions only.
> Example of restarting the process every three days:
>
> check process myapp with pidfile /var/run
Hello Markus,
the restart depends to your definition.
> Here the definition of the base service others depend on it
> CHECK PROCESS mqm_TBCOM MATCHING "^/opt/mqm/bin/amqzxma0 -m TBCOM -u mqm$"
> START = "/bin/bash -c '. /u01/app/bcom/settings/bash_profile;
> /bin/strmqm TBCOM'" UID mqm GID
Hello Markus,
>
>> You are using RHEL I think?
> Yes
No, we/I use AIX (7.2), SLES (11.4, 12.3 and 12.4) and MacOS (10.6,
10.10). We/I use Monit 5.25.2, 5.26.0 and 5.19.0 (for the old MacOS 10.6
systems only).
>
>> Are you using Systemd to start your applications or handle Monit the
>> applicati
1 - 100 of 184 matches
Mail list logo