Re: ssl: unsafe legacy renegotiation

2023-02-09 Thread mart...@tildeslash.com
> On 9. 2. 2023, at 22:11, mart...@tildeslash.com wrote: > > > >> On 9. 2. 2023, at 20:22, sashk via This is the general mailing list for >> monit wrote: >> >> Hi, >> >>> Google the error and solution. Either update SSL on the c

Re: ssl: unsafe legacy renegotiation

2023-02-09 Thread mart...@tildeslash.com
> On 9. 2. 2023, at 20:22, sashk via This is the general mailing list for monit > wrote: > > Hi, > >> Google the error and solution. Either update SSL on the cable modem “server” >> if you can or modify Monit (the client) yourself. > > > Upgrading ssl is not possible on cable modem,

Re: link upload errors - ?

2022-05-26 Thread mart...@tildeslash.com
Hi, it comes from the "tx_errors" statistics, see here for more details: https://docs.kernel.org/networking/statistics.html Best regards, Martin > On 25. 5. 2022, at 22:07, lejeczek via This is the general mailing list for > monit wrote: > > Hi guys. > > I have something which I think I

[Announce] Monit 5.28.1

2021-07-30 Thread mart...@tildeslash.com
Hi, We have just released Monit 5.28.1 Download: https://mmonit.com/monit/#download Release Notes: == Please see https://mmonit.com/monit/changes/ for a complete and detailed list of changes in this

Re: Monit is not notifying me of PID changes

2021-07-11 Thread mart...@tildeslash.com
Hello Viktor, good catch, we've fixed the manual. Best regards, Martin > On 11 Jul 2021, at 10:34, SZÉPE Viktor wrote: > > Idézem/Quoting mart...@tildeslash.com: > >> Hello, >> >> the PID and PPID change tests are no longer implicit from Monit 5.11.0, &g

Re: Multiple Email Recipients in ONE Mont Email

2021-06-30 Thread mart...@tildeslash.com
Hi Cyrus, no, each message has isolated recipient in monit. Btw. the following disclaimer shouldn't be used for public mailing list posts: --8<-- The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message

Re: The day I lost my job due to monit

2020-12-08 Thread mart...@tildeslash.com
We can extend the certificate verification to the whole chain. Best regards, Martin > On 8 Dec 2020, at 19:11, rexkogit...@gmx.at wrote: > > Sure, I admit I sought for a kind of a sensational headline. Monit is a > great tool which surveils the services of this company since many years > and

Re: Monit shows "statistic error"

2020-11-18 Thread mart...@tildeslash.com
Hello Ani, it may happen if the process exits while monit is collecting the data. No need to worry about it. Best regards, Martin > On 18 Nov 2020, at 18:49, Ani A wrote: > > Sorry, small correction: > > Monit version 5.25.1 on Ubuntu 18.04.4. > > -- > Ani > > On Wed, Nov 18, 2020 at

[Announce] Monit 5.27.1

2020-10-24 Thread mart...@tildeslash.com
Hi, We have just released Monit 5.27.1 Download: https://mmonit.com/monit/#download Release Notes: == Please see https://mmonit.com/monit/changes/ for a complete and detailed list of changes in this

Re: Bug since upgrade and documentation

2020-07-21 Thread mart...@tildeslash.com
Hi, the monit 5.27.0 enables just TLS 1.2 or later by default (even if the version is "auto"). It seems that the OpenSSL library on CentOS doesn't support it, you can enable e.g. TLS 1.1 explicitly this way: set ssl { version: tlsv11 } Best regards, Martin > On 20 Jul

Re: monitor service

2020-07-07 Thread mart...@tildeslash.com
Yes, something like this should work: check process traccar match "" start program = "/bin/systemctl start traccar" stop program = "/bin/systemctl stop traccar" You just need to replace the " by string that will match your process ... you can test it with

Re: Check the age of a process

2019-08-22 Thread mart...@tildeslash.com
Yes, the uptime test can be used this way. The process check will however alert if the process is not running - you can suppress this alert though: https://mmonit.com/monit/documentation/monit.html#Setting-an-event-filter

[Announce] Monit 5.26.0

2019-07-06 Thread mart...@tildeslash.com
Hi, We have just released Monit 5.26.0 Download: https://mmonit.com/monit/#download Release Notes: == Please see https://mmonit.com/monit/changes/ for a complete and detailed list of changes in this release. Contact: If you have questions, comments or any other

Re: Monit doesn't understand ssl or https

2019-07-05 Thread mart...@tildeslash.com
Please can you check if monit was compiled with SSL? For example: $ monit -V This is Monit version 5.26.0 Built with ssl, with ipv6, with compression, with pam and with large files Copyright (C) 2001-2019 Tildeslash Ltd. All Rights Reserved. Best regards, Martin > On 5 Jul 2019, at 19:50,

Re: Monit DNS check response

2019-06-04 Thread mart...@tildeslash.com
Hi, the implementation of extended DNS protocol test with custom queries is in progress. Best regards, Martin > On 4 Jun 2019, at 06:21, David Jones wrote: > > Does monit have the ability to check a DNS server for a specific response? I > have a need to check a local DNS server and if it

Re: Monit with Node Js

2019-06-04 Thread mart...@tildeslash.com
Hi, monit doesn't support foreground processes - you need to modify the script to start the program in background. Best regards, Martin > On 3 Jun 2019, at 07:56, Yogesh Jangra wrote: > > Hi all, > > I am trying to monitor a node js app using monit. The node server is > getting

Re: Monit start delay only on boot

2019-06-03 Thread mart...@tildeslash.com
Hi Dave, if monit depends on some services on your system, it'll be maybe better to set the dependencies and drop the start delay option from the configuration file. Best regards, Martin > On 1 Jun 2019, at 21:31, David Jones wrote: > > Loving monit. Just started using it a few months ago

Re: Monit not restarting a service reliably

2019-06-03 Thread mart...@tildeslash.com
Hi, since monit 5.16.0, the exec action is executed only on a state change. In your case the service didn't transition to the "succeeded" state, so the exec action wasn't repeated. If you want to retry the exec action if the service remains in failure state, you can use the "repeat" option.

Re: Monit with Node Js as foreground

2019-06-03 Thread mart...@tildeslash.com
Hi, monit currently doesn't support foreground processes monitoring. Best regards, Martin > On 3 Jun 2019, at 08:45, Yogesh Jangra wrote: > > Hi all, > > I am trying to monitor a node js app using monit. The node server is > getting started using a script which starts the server as

Re: Considerations when using Monit with systemd

2019-04-20 Thread mart...@tildeslash.com
Hi, if you control the same services with systemd and the system is stopping, monit should be stopped first to prevent collision between monit and systemd. Starting the system services on boot in parallel with systemd should work fine - systemd will just get a request from monit to start the

Re: Why does “failed protocol test [PGSQL]” happen when system is under load, or how to troubleshoot?

2019-04-09 Thread mart...@tildeslash.com
Hi, the error is most probably caused by timeout ... you can catch and verify the communication between monit and postgresql for example using Wireshark. Best regards, Martin > On 9 Apr 2019, at 23:23, Support Team wrote: > > The error from Monit: > > [EDT Apr 9 12:40:45] error :

Re: loadavg figures - percentages or not?

2019-04-08 Thread mart...@tildeslash.com
Hi, the loadavg is not percent - as the manual states, it is absolute value: number of processes in the run queue. The practical limit depends on the number of CPUs and the typical load pattern - a rule of thumb we use is 2 processes per CPU core. If the machine has for example 48 cores, the

Re: Mount and umount ceph volume

2019-03-18 Thread mart...@tildeslash.com
gt;> swap usage 0 B [0.0%] >> uptime 59m >> boot timeThu, 07 Mar 2019 23:40:21 >> data collected Fri, 08 Mar 2019 00:35:28 >> >> [root@vdicnode04 /]# >> >> It gets stuck

Re: cpu wait usage of 307394485866725376.0%

2019-03-15 Thread mart...@tildeslash.com
Hello Stefan, the problem was fixed in monit 5.25.3, changelog excerpt: Fixed: The CPU user/system/wait statistics may show negative value if the system counter jumps back or wraps. Best regards, Martin > On 15 Mar 2019, at 17:38, stefanx wrote: > > Hello, > > I get the following

Re: Configure options for official release static binaries?

2019-03-09 Thread mart...@tildeslash.com
statically linked, but they are not. > I’ve checked x86_64, arm7, arm8 linux binaries) > > Small mistake on the published binaries? > > Regards, > Martin Winter > > > On 7 Mar 2019, at 12:14, mart...@tildeslash.com wrote: > >> Hi, >> >> we u

Re: monit not catching failed ping test

2019-03-08 Thread mart...@tildeslash.com
> Andrew Fant |Systems Administrator > andrew.f...@nih.gov <mailto:andrew.f...@nih.gov> | Lei Shi Lab , > NIH/NIDA/IRP > (443)740-2849 | > > From: "mart...@tildeslash.com <mailto:ma

Re: monit not catching failed ping test

2019-03-08 Thread mart...@tildeslash.com
Hello, monit checks the service in intervals given by the "set daemon " settings. If the interval between checks is long or the check is blocked by some service timeout/action, then the interval can be longer. Please can you check the "set daemon" settings and run monit in debug mode?:

Re: Mount and umount ceph volume

2019-03-07 Thread mart...@tildeslash.com
Hi, we didn't test with ceph, you can try generic configuration, for example: check filesystem myfs with path /mydata start program = ...#note: set the start command (mount) stop program = ... #note: set the stop command (umount) It is possible

Re: Configure options for official release static binaries?

2019-03-07 Thread mart...@tildeslash.com
Hi, we use the following configuration with static openssl and zlib builds: ./configure --with-ssl-static=$REPOSITORY --with-zlib=$REPOSITORY Best regards, Martin > On 7 Mar 2019, at 17:50, Martin Winter wrote: > > Hi there, > > curious on how the configure/build options are for

[Announce] Monit 5.25.3

2019-03-05 Thread mart...@tildeslash.com
Hi, all We have just released Monit 5.25.3 Download: https://mmonit.com/monit/#download Release Notes: == This release contains two important security fixes, monit upgrade is highly recommended. Please see https://mmonit.com/monit/changes/ for a complete and detailed list

Re: monit doesn't run stop action

2019-03-05 Thread mart...@tildeslash.com
Hi, please can you add the configuration of "foo" and "bar" services? There are for example these possible reasons: 1.) the "bar" service is a process and monit detected that the process is not running - in this case it gets a fast path and stop is skipped (the process is not running) 2.)

Re: Need help with monit procmatch

2018-12-11 Thread mart...@tildeslash.com
hanks > Rahul > > > > On Tuesday, 11 December, 2018, 12:48:19 AM IST, mart...@tildeslash.com > wrote: > > > Hi, > > which monit version it is?: > > monit -V > > As mentioned, monit >= 5.12.0 should work fine with up to 4096 bytes long >

Re: Need help with monit procmatch

2018-12-10 Thread mart...@tildeslash.com
cat test | wc -c > 2069 > > size of test file > 4.0Ktest > > Thanks > Rahul > > > > On Wednesday, 5 December, 2018, 12:21:12 AM IST, mart...@tildeslash.com > wrote: > > > Hello, > > the limit for the command-line pattern is 4kB since monit

Re: Auto-discard notification

2018-12-04 Thread mart...@tildeslash.com
Hello, the limit for the command-line pattern is 4kB since monit 5.12.0 (was 1kB for monit <= 5.11.0) Please can you provide the length of your command line? We can refactor the limit out or add a new option to "set limits" statement. Best regards, Martin > On 4 Dec 2018, at 09:17,

Re: upstart config causes hang

2018-12-04 Thread mart...@tildeslash.com
Hi, please can you check logs? You can also add the -v option to the exec line to enable monit debug mode. Best regards, Martin > On 4 Dec 2018, at 09:54, Nick Upson wrote: > > Hi > > I'm using the script linked below on centos 6, when I do "start > monit_upstart" or "stop monit_upstart"

Re: Host test with Server returned status 538226728

2018-11-16 Thread mart...@tildeslash.com
Hello Lutz, please can you get a network trace of the communication between monit and manager.intern:5001 ? Best regards, Martin > On 14 Nov 2018, at 15:07, lutz.ma...@freenet.de wrote: > > Hello, > I use some "if failed host" tests with a "check process" service, based on > monit 5.21.0

Re: AssertException raised in StringBuffer_free

2018-11-04 Thread mart...@tildeslash.com
Hello, please can you send coredump (if available) to supp...@mmonit.com? There is one similar problem we solved recently, that can be duplicate of this issue: https://bitbucket.org/tildeslash/monit/issues/764/use-after-free-in-function-_handleevent Best regards, Martin > On 3 Nov 2018, at

Re: Unknown host showed up

2018-09-18 Thread mart...@tildeslash.com
Hi, the "ipaddrin" column contains the client IP address as viewed by M/Monit - you can see it in the "Admin -> Host" page in the "Address" column. There are few exceptions: 1.) If the host is behind NAT/masquerading, it may not correspond to local IP address on the host 2.) If the monit

Re: Alert for Filesystem check does not work on CentOS 7

2018-09-16 Thread mart...@tildeslash.com
Hi, please can you run monit in debug mode and send output?: monit -vI Best regards, Martin > On 14 Sep 2018, at 14:12, Gergely Dudas wrote: > > Hi, > > We would like to use monit's filesystem check on CentOS 7, but unfortunately > it does not send any alert email. > > Here is an

Re: process pid reuse

2018-08-02 Thread mart...@tildeslash.com
Hi, you can use the pattern based process check instead of the pidfile to prevent this problem: https://mmonit.com/monit/documentation/monit.html#Process Best regards, Martin > On 2 Aug 2018, at 08:17, Ranjit Noronha wrote: > >

Re: "check now" command

2018-07-31 Thread mart...@tildeslash.com
> Can we do something about it? > > > Idézem/Quoting mart...@tildeslash.com: > >> Hi, >> >> you can use "monit validate" to trigger the monitoring cycle and collect >> status. >> >> The "check program" will have however one c

Re: "check now" command

2018-07-31 Thread mart...@tildeslash.com
Hi, you can use "monit validate" to trigger the monitoring cycle and collect status. The "check program" will have however one cycle delay, as monit currently collects the result the next cycle after the program is executed (to not block other tests). Best regards, Martin > On 31 Jul 2018,

Re: correct STARTTLS syntax for email alerts?

2018-07-30 Thread mart...@tildeslash.com
kward compatibility. Please can you get a network trace of the communication between monit and your mailserver on port 587 (for example using wireshark) and send it to supp...@mmonit.com? > On 30 Jul 2018, at 23:08, David Newman wrote: > > On 7/30/18 12:05 PM, mart...@tildesl

Re: correct STARTTLS syntax for email alerts?

2018-07-30 Thread mart...@tildeslash.com
Jul 2018, at 20:53, David Newman wrote: > > On 7/30/18 10:50 AM, mart...@tildeslash.com wrote: > >> The configuration looks fine, please can you send Monit log? > > It's just a lot of entries like this. I deliberately stopped the Mailman > service to try to force

Re: correct STARTTLS syntax for email alerts?

2018-07-30 Thread mart...@tildeslash.com
The configuration looks fine, please can you send Monit log? Best regards, Martin > On 30 Jul 2018, at 01:16, David Newman wrote: > > FreeBSD 11.2, monit-5.25.2 compiled from ports with SSL/TLS support > > What's the correct syntax for monit to use STARTTLS when sending email > alerts? > >

Re: Notifications based on action events

2018-06-29 Thread mart...@tildeslash.com
Hello, monit doesn't allow to catch the 'action' event - it is triggered as part of start/stop/restart/unmonitor/monitor action, i.e. if you need to call some script if one of these occurred, it should be part of the start/stop/restart method definition. M/Monit allows to define a rule even

Re: Notification script in check program

2018-06-21 Thread mart...@tildeslash.com
Hi Lutz, you can use multiple status tests within the 'check program' - if the status differs on program success, the second status check should catch it, something like this: check program myprogram with path "/usr/local/bin/helloworld" if status = 0 then exec

Re: Send status notifications

2018-06-16 Thread mart...@tildeslash.com
Hello Lutz, the CLI start/stop/restart/monitor/unmonitor action event is called "action" (stands for "user action") ... there is no rule in your configuration file for this event type which would trigger the script. The rules in your configuration file will catch just anomalies (process

Re: Building monit myself for Linux s390x

2018-06-03 Thread mart...@tildeslash.com
Hello Lutz, the support for TLSv1.3 depends on the SSL library ... Monit has support for it. The TLSv1.3 is supported for example in the OpenSSL 1.1.0 or later. Best regards, Martin > On 3 Jun 2018, at 21:13, Lutz Mader wrote: > > Hello Tildeslash, > a question of understanding only. > I

[Announce] Monit 5.25.2

2018-05-29 Thread mart...@tildeslash.com
Hi, all We have just released Monit 5.25.2 Download: https://mmonit.com/monit/#download Release Notes: == Please see http://mmonit.com/monit/changes/ for a complete and detailed list of changes in this release. Contact: If you have questions, comments or any

Re: ping issues

2018-05-17 Thread mart...@tildeslash.com
.268 ms > 20 216.239.47.251 (216.239.47.251) 50.622 ms 209.85.248.209 > (209.85.248.209) 50.059 ms 50.042 ms > 21 209.85.252.253 (209.85.252.253) 50.162 ms 209.85.248.209 > (209.85.248.209) 50.939 ms 72.14.239.219 (72.14.239.219) 49.764 ms > 22 216.239.50.5 (216.239.50.5) 51.

Re: ping issues

2018-05-17 Thread mart...@tildeslash.com
Hello, please can you get a network trace of failed ping tests? Best regards, Martin > On 17 May 2018, at 05:45, Paul Theodoropoulos wrote: > > I'm running a little personal project on a shoestring budget - e.g. a couple > of AWS t2.nano instances, so everything needs

Re: master switch

2018-04-16 Thread mart...@tildeslash.com
Hi, when we want to suppress all alerts for example when we want to reboot a server which is hosting lot of test machines without gracefully stopping these test hosts, we turn-off the "master switch" for the whole alert rule in M/Monit, then reboot and turn it on again when reboot finished:

Re: local alerts

2018-03-28 Thread mart...@tildeslash.com
Hi, the combination of global and local alert should work, provided it's not the same email address. You can also add second "check file" for the same file, but the service name must be unique (it doesn't have to match the filename), for example: --8<-- check file mylog_error with path

Re: Terminal Batch doesn't work always

2018-03-23 Thread mart...@tildeslash.com
Hello Lutz, the color (ANSI escape sequence) is set on server-side and stripped by monit CLI if in batch mode. If you use curl to fetch the status in txt format directly, you need to strip the escape sequence yourselves, for example: curl http://127.0.0.1:2812/_status

Re: Email Alerts with Process List

2018-03-22 Thread mart...@tildeslash.com
The "check program" description is set to script's output: https://mmonit.com/monit/documentation/monit.html#PROGRAM-STATUS-TEST > On 20 Mar 2018, at 14:16, Gee Fitz wrote: > > Is it possible to include a list of processes with an alert? > > message: $EVENT Service $SERVICE >

Re: Monit using ethtool

2018-03-14 Thread mart...@tildeslash.com
You can check link errors with "check network" directly: https://mmonit.com/monit/documentation/monit.html#NETWORK-INTERFACE-TESTS The current monit release will trigger a "link" event if rx/tx errors are detected. If you want to integrate ethtool, you can use the "check program" with custom

Re: Remote mongodb host

2018-03-07 Thread mart...@tildeslash.com
wrote: > > Thanks for the clarification. Would it work if I embed the credentials in the > connection string? > >> On Mar 7, 2018, at 4:15 PM, mart...@tildeslash.com wrote: >> >> The mongodb protocol test doesn't support an username and password >> >> >&g

Re: Remote mongodb host

2018-03-07 Thread mart...@tildeslash.com
The mongodb protocol test doesn't support an username and password > On 7 Mar 2018, at 22:09, Sar Haidar wrote: > > I’m trying to use monit to verify the connection between a host running monit > and another host running mongodb. I was successfully able to write a rule to >

Re: Monit check change ?

2018-02-22 Thread mart...@tildeslash.com
>> immediately background >> the script for an immediate return. >> Or there is maybe a limit on number on lines treated at once ? >> >> Any idea to solve our issue ? >> >> regards >> >> >> Le 19/02/2018 à 23:37, mart...@tildeslash.co

Re: Monit check change ?

2018-02-19 Thread mart...@tildeslash.com
Hello, yes, see Monit 5.4 changelog: --8<-- * The content match test now sends one event per cycle and pattern. Even if there are multiple lines matching the same pattern, only one event will be generated. Also the event rate is fixed now, so it is possible to require match for X cycles

Re: Single email from multiple related content matches

2018-02-08 Thread mart...@tildeslash.com
Hi, which Monit version it is? (monit -V) The Monit 5.4 or later should send only one email if the pattern matches multiple times in one cycle, changelog excerpt: --8<-- * The content match test now sends one event per cycle and pattern. Even if there are multiple lines matching the same

Re: Lots of "peer closed connection" errors for one machine

2018-01-24 Thread mart...@tildeslash.com
Hello, please can you send the following files from M/Monit's log directory to supp...@mmonit.com?: 1.) mmonit.log 2.) error.log Which M/Monit version it is? Which Monit version is on the peer side? Best regards, Martin > On 24 Jan 2018, at 20:00, Mike Gioia wrote:

Re: Case insensitive regex for MATCH - possible?

2018-01-09 Thread mart...@tildeslash.com
Hello, Monit regex is currently case sensitive ... if you want case insensitive, you can: 1.) either rewrite the regex to case-insensitive, for example: IF MATCH "(?i)[bB][aA][nN][eE][dD][|L][bB][lL][aA][cC][kK][lL][iI][sS][tT]" THEN ALERT 2.) or modify the regcomp() flags in src/p.y

Re: Auto-discard notification

2018-01-09 Thread mart...@tildeslash.com
Hello, please upgrade monit, the problem was fixed in 5.23.0, snip from changelog: Fixed: Issue #603: Support existence/nonexistence test for filesystem check Best regards, Martin > On 9 Jan 2018, at 17:40, monit-general-boun...@nongnu.org wrote: > > The attached message has been

Re: failing to stop a service means giving up on starting?

2018-01-06 Thread mart...@tildeslash.com
Hello, if the stop method failed, it's not clear if it's safe to run the start method (the service is in kind of undefined state). You can add a standalone restart method that will override the default stop+start sequence (the restart method can be better prepared for such exceptions then

Re: Can monit start services on remote host based on monitored host?

2018-01-06 Thread mart...@tildeslash.com
Yes, you can use 'exec' action and execute command on the remote host via ssh (you'll have to setup the ssh keys so it's possible to send commands - the access can be limited via ssh configuration for specific command only). Best regards, Martin > On 4 Jan 2018, at 12:50, Muhamed Huseinbašić

Re: monit stops

2017-12-10 Thread mart...@tildeslash.com
Hello, this problem was fixed already: https://bitbucket.org/tildeslash/monit/issues/501/monit-519-520-crashes-while-check-program Best regards, Martin > On 10 Dec 2017, at 15:11, SZÉPE Viktor

Re: [Announce] Monit 5.25.1 (monit RPM)

2017-11-17 Thread mart...@tildeslash.com
> was hoping to stay with the EPEL build. Any idea if it's still being > maintained by EPEL? > > Dimitri > > -Original Message- > From: monit-general > [mailto:monit-general-bounces+dyioulos=netatlantic@nongnu.org] On Behalf > Of mart...@tildesla

Re: [Announce] Monit 5.25.1 (monit RPM)

2017-11-17 Thread mart...@tildeslash.com
onit-general > [mailto:monit-general-bounces+dyioulos=netatlantic@nongnu.org] On Behalf > Of mart...@tildeslash.com > Sent: Friday, November 17, 2017 5:31 PM > To: This is the general mailing list for monit <monit-general@nongnu.org> > Subject: [Announce] Monit 5.25.1 &g

[Announce] Monit 5.25.1

2017-11-17 Thread mart...@tildeslash.com
Hi, all We have just released Monit 5.25.1 Download: https://mmonit.com/monit/#download Release Notes: == Please see http://mmonit.com/monit/changes/ for a complete and detailed list of changes in this release. Contact: If you have questions, comments or any

Re: Problem with using multiple mail-format

2017-11-16 Thread mart...@tildeslash.com
> > -Original Message- > From: monit-general > [mailto:monit-general-bounces+pmancillas=eprod@nongnu.org > <mailto:monit-general-bounces+pmancillas=eprod@nongnu.org>] On Behalf Of > mart...@tildeslash.com <mailto:mart...@tildeslash.com> > Sent:

Re: Problem with using multiple mail-format

2017-11-15 Thread mart...@tildeslash.com
Hello, the "set mail-format" statement can be used only once - if you use it multiple times, only the last one of them will be used. Also one "check system" can be used only once. It is possible to override the mail-format for each recipient in the service context (however in this case in

Re: Monit triggering restart storm

2017-11-09 Thread mart...@tildeslash.com
Hi, if the start/stop methods are the same "/bin/systemctl [start|stop] myservice", then the solution should be the dependency of all 'check program' and 'check file' on the 'check process' parent. If the dependant checks need to restart the parent process, they should do so via "... exec

[Announce] Monit 5.25.0

2017-11-07 Thread mart...@tildeslash.com
Hi, all We have just released Monit 5.25.0 Download: https://mmonit.com/monit/#download Release Notes: == Please see http://mmonit.com/monit/changes/ for a complete and detailed list of changes in this

Re: Monit is not notifying me of PID changes

2017-10-18 Thread mart...@tildeslash.com
Hello, the PID and PPID change tests are no longer implicit from Monit 5.11.0, changelog excerpt: --8<-- New: The PID and PPID change tests are no longer implicit. If you want to test the process PID/PPID changes, you have to add this test explicitly: if changed pid then alert if

Re: monit alert mail message id issue

2017-10-18 Thread mart...@tildeslash.com
Hi, the problem was fixed in Monit 5.2.4, changelog excerpt: --8<-- * Randomize the mail message id to prevent duplicates in the case, that the same hostname is used on multiple hosts running monit and messages are generated in the same second in parallel. Thanks to Sergey B Kirpichev.

Re: monit alert -- Status failed network_resolv

2017-10-18 Thread mart...@tildeslash.com
lable etc) then an email should be sent > with this error. > > Or would this require a separate "file" check? > > Thank you, > > Shak > > From: monit-general <monit-general-bounces+sshaikh=hotmail@nongnu.org> on > behalf of mart...@tildeslash.com <

Re: monit alert -- Status failed network_resolv

2017-10-18 Thread mart...@tildeslash.com
Hello Viktor, the 'alert' action is implicit, the alert is send too even if you have 'exec' action => you can simplify the configuration: original: if status != 0 then alert if status != 0 then exec "/usr/local/sbin/monit-slack.sh 'https://hooks.slack.com/services...'" simplified (exec

Re: Compiling embedding SSL lib

2017-10-06 Thread mart...@tildeslash.com
Hello, we compile Monit with OpenSSL statically this way: ./configure --with-ssl-static= You can also use the pre-compiled binaries: https://mmonit.com/monit/dist/binary/ Best regards, Martin > On 6 Oct 2017, at 16:46, Guillaume François > wrote: >

[Announce] Monit 5.24.0

2017-09-24 Thread mart...@tildeslash.com
Hi, all We have just released Monit 5.24.0 Download: https://mmonit.com/monit/#download Release Notes: == Please see http://mmonit.com/monit/changes/ for a complete and detailed list of changes in this

Re: Ignore Monit's First Alert

2017-09-19 Thread mart...@tildeslash.com
You can try this: check host somehost with address somehost.com start program = "/opt/monit/scripts/somehostcheckport.sh start" stop program = "/opt/monit/scripts/somehostport.sh stop" if failed port 80 for 5 cycles then restart # note: will restart

Re: is it possible to enable basic-auth as default authentication method on M/Monit?

2017-09-17 Thread mart...@tildeslash.com
Hello Jorge, the M/Monit GUI uses a FORM authentication, the BASIC-auth is used only for the status/events collector. The FORM authentication example is described in the M/Monit HTTP-API documentation (you can use it with script or to create a custom dashboard):

Re: CSRF does not work in iframe.

2017-09-14 Thread mart...@tildeslash.com
Hello, the Access-Control-Allow-Credentials is dangerous header. Monit uses state-less double-submit-cookie pattern for CSRF defence: https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet#Double_Submit_Cookie ... the action will work when the request's

Re: nice value

2017-08-22 Thread mart...@tildeslash.com
Hello, monit doesn't set the process priority - the default is 0, unless overridden via /etc/security/limits.conf priority settings. Also the child inherits parent's priority on fork (which occurs of Monit executes the start/stop program), i.e. if you're running Monit with lower priority, the

Re: Manual page

2017-08-15 Thread mart...@tildeslash.com
Hello Vitor, fixed. Best regards, Martin > On 10 Aug 2017, at 00:51, SZÉPE Viktor wrote: > > > Hello! > > Would it be possible to add a to the Manual page? > >> https://mmonit.com/monit/documentation/monit.html > > Maybe "Monit Manual"? > > Thanks. > > SZÉPE Viktor,

Re: Problems with M/Monit reporting "Could not register a new connection with Reactor -- Too many open files"

2017-08-12 Thread mart...@tildeslash.com
Hello Jorge, please can you send mmonit.log and error.log from M/Monit's "logs" directory to supp...@mmonit.com ? Which M/Monit version it is? Best regards, Martin > On 12 Aug 2017, at 02:10, Jorge Pereira wrote: > > Hi, > > The m/monit is

Re: how to disable a specific event globally on the m/monit?

2017-08-03 Thread mart...@tildeslash.com
Hello Jorge, you can create an exclude list, for example to disable "Monit instance" events (Monit start/stop/reload): Best regards, Martin > On 3 Aug 2017, at 04:39, Jorge Pereira wrote: > > Hello List, > > how to disable a specific event globally on the m/monit? >

Re: "if failed gid disk then alert" throws syntax error

2017-08-03 Thread mart...@tildeslash.com
Hello Marcus, the "disk" is now reserved word, you need to quote it if you want to use it as gid. Example: check filesystem root_fs with path /dev/sda5 if failed uid "root" then alert if failed gid "disk" then alert Best regards, Martin > On 3 Aug 2017, at 16:44, Marcus

Re: missing or invalid Authorization header

2017-07-18 Thread mart...@tildeslash.com
Hello Thomas, this error is usually related to the first request the browser sends, as the browser doesn't "know" yet, that authorization is required. Monit sends a "401" response and browser then repeats the request with Basic authentication (some browsers send multiple requests in parallel,

Re: Planned Downtime

2017-07-18 Thread mart...@tildeslash.com
You can use the M/Monit HTTP-API to switch the host status to "ignored" before the planned downtime starts and back to "active" when it stops ... see the /admin/hosts/update method for details: https://mmonit.com/documentation/http-api/Methods/Admin_Hosts Example of simple script:

Re: Check file and match behavior

2017-07-11 Thread mart...@tildeslash.com
Hi Lutz, if your application log is set to a standalone file, you can test a modification timestamp if it logs some messages while it is running. For example (syntax for Monit >= 5.22.0): check file myapp_log with path /var/log/myapp.log if timestamp is older than 1

Re: Directory size monitoring

2017-07-11 Thread mart...@tildeslash.com
Hi Lutz, the directory size check was not implemented yet, you can observe the related task via bitbucket to get notified when it is implemented: https://bitbucket.org/tildeslash/monit/issues/191/check-directory-should-be-able-to-test-the Best regards, Martin > On 10 Jul 2017, at 14:19,

Re: [cpu temperature : graph]

2017-07-06 Thread mart...@tildeslash.com
Hi, custom charts are currently not supported in M/Monit, we plan to add it. Best regards, Martin > On 6 Jul 2017, at 06:38, LACROIX Jean Marc wrote: > > Hi, > > Im am monitoring the CPU temperature with success with following code : > > cat

Re: Cannot add M/Monit as daemon

2017-06-28 Thread mart...@tildeslash.com
> From: monit-general [mailto:monit-general- >> bounces+sorin.srbu=orgfarm.uu...@nongnu.org] On Behalf Of >> mart...@tildeslash.com >> Sent: den 28 juni 2017 11:46 >> To: This is the general mailing list for monit <monit-general@nongnu.org> >> Subject: Re: Cannot a

Re: Cannot add M/Monit as daemon

2017-06-28 Thread mart...@tildeslash.com
Hello Sorin, you can find recipes for automatic M/Monit startup here: https://mmonit.com/wiki/MMonit/Setup#autolaunch . The easiest way is to register M/Monit as a service in Monit - it will also make M/Monit process visible in its own Reports.