Re: Monit load average monitoring

2023-01-16 Thread Tino Hendricks
Hi Leonhard, I think this is not a monit specific question or at least can’t be easily answered. As for the calculation for CPU utilization there are tons of explanations on the web, i.e. https://community.tenable.com/s/article/What-is-CPU-Load-Average

Re: Is monit deterministic?

2022-12-23 Thread Tino Hendricks
Hi Leonard, I think I can answer 2) As per https://mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIME you have several options. The "cron style" might come closest to your need. Happy Christmas days to all! Tino >

Re: check program times out

2022-04-01 Thread Tino Hendricks
> Am 01.04.2022 um 12:23 schrieb SZÉPE Viktor : > > Idézem/Quoting Tino Hendricks : > >>> Am 01.04.2022 um 09:50 schrieb SZÉPE Viktor : >>> >>> Idézem/Quoting Tino Hendricks >> <mailto:t.hendri...@interpool.de>>: >>>

Re: check program times out

2022-04-01 Thread Tino Hendricks
> Am 01.04.2022 um 09:50 schrieb SZÉPE Viktor : > > Idézem/Quoting Tino Hendricks <mailto:t.hendri...@interpool.de>>: > >> Dear list, >> >> I’m trying to monitor an USB port. >> >> The script „checkUSB.sh“ returns „error“ or „e

check program times out

2022-03-31 Thread Tino Hendricks
Dear list, I’m trying to monitor an USB port. The script „checkUSB.sh“ returns „error“ or „exists“ (successfully tested in Terminal as root). Monit runs as root but with check program checkUSB with path "/usr/local/sbin/checkUSB.sh" if content != "exists" then alert never returns. The pro

Re: Monit log date format configurable ?

2020-08-12 Thread Tino Hendricks
Hi Ani, according to https://mmonit.com/monit/documentation/monit.html#LOGGING can you tell monit so use syslog where you can tailor the format to your needs. Best Tino > Am 12.08.2020 um 14:25 schrieb Ani A : > > Hello, > > The default log format of Monit has date in the form > > [CET Jan

Re: How to watch file content tests for several events in the same cycle?

2019-09-26 Thread Tino Hendricks
Marcus, my suggestion as usual pleas for use of a script, because I don’t think monit can do what you need out of the box. Something like if [[ $((`tail -3 /var/log/log_to_watch | grep CRITICAL | wc -l`)) -gt 1 ]] ; then … might be a way to go? Take care Tino > Am 26.09.2019 um 11:11 schr

Re: Port 25 check cause of "Unable to open a socket to Sendmail" error?

2019-04-11 Thread Tino Hendricks
I think, this might only be the case if your postfix is configured to accept just one concurrent connection, i.e. master.cf: # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (no)(never) (100) # =

Re: limit check file alerts

2019-03-25 Thread Tino Hendricks
Marc, just a simple thought: Define this check with a „noalert“ statement and define an additional one with softer criterions (like „… for 5 cycles…“) which does real alerts? Cheers! Tino > Am 22.03.2019 um 22:46 schrieb Marc Rossi : > > I have a process that creates a logfile named > "/var

Re: How to monit mariadb

2019-03-21 Thread Tino Hendricks
ot running, or does monit ignore the status and always thinks it's > running whether it is or not? Is the PID saved in the same subdirectory of > /run/? > > On 3/20/19 14:39, Tino Hendricks wrote: >> Dear list, >> >> I upgraded one (gentoo) server from mysql-5.7.24

How to monit mariadb

2019-03-20 Thread Tino Hendricks
Dear list, I upgraded one (gentoo) server from mysql-5.7.24 to mariadb-10.1.37 and since then I’m not able to check it's running. monit 5.25.3 Config is unchanged: check process mysqld with pidfile /run/mysqld/mysql.pid group database start program = "/etc/init.d/mysql restart"

Re: Monit several IPs

2018-03-26 Thread Tino Hendricks
… or via the MTA. e.g. with Postfix, enter in /etc/postfix/transport something like my.final.domain.for.monitmails.com smtp:the.relay.or.mail.host Cheers! Tino > Am 26.03.2018 um 20:26 schrieb Roose, Marco : > > Hi Guillaume, I think you have to manage this with network routing. Seting a > ded

Re: Case insensitive regex for MATCH - possible?

2018-01-09 Thread Tino Hendricks
  Not having the need nor tested it, but the manual states regex is used according to http://man7.org/linux/man-pages/man7/regex.7.html Best Tino Am 8. Januar 2018 um 22:58:26, Sebastian Arcus (s.ar...@open-t.co.uk(mailto:s.ar...@open-t.co.uk)) schrieb: > Hello list. I might be missing s

Re: Monit : unmonitor during logrotate

2017-11-06 Thread Tino Hendricks
Hi Gaston, how about using logrotate’s „prerotate“ and „postrotate" lines for something like prerotate monit unmonitor blah endscript https://linux.die.net/man/8/logrotate Best, Tino Am 6. November 2017 um 11:29:38, tonthon (tontho...@gmail.com) schrieb: Hi, Sometimes mon

Re: Port Status Check Configuration

2017-08-29 Thread Tino Hendricks
imeout (5 seconds) is too fast? > > Right now the failed-succeded interval back to 5 minutes again > http://imgur.com/a/FithN > > > On 28/08/17 17:09, Tino Hendricks wrote: >> Then I think the only possibility is you’re running into timeouts. >> I’d play around with

Re: Port Status Check Configuration

2017-08-28 Thread Tino Hendricks
gt; 8080/tcp open > Mon Aug 28 00:33:10 UTC 2017 > 80/tcp open > 843/tcp open > 2121/tcp open > 8080/tcp open > ### > > > On 28/08/17 16:37, Tino Hendricks wrote: > > Rizal, > > > > looking at your script I think you mixed up functionalit

Re: Port Status Check Configuration

2017-08-28 Thread Tino Hendricks
Rizal, looking at your script I think you mixed up functionality: The check if a network port is open or not is done with the  "if failed port…“ statements. The „start/stop program“ is meant for the case where these checks fail and you tell monit to „restart“. So if you’re not happy with the bui

Re: Monitoring /dev/ttyUSB*

2017-08-06 Thread Tino Hendricks
regular file nor a socket :-( I think these tests are not capable of checking a device file. Tino > Am 06.08.2017 um 23:00 schrieb Nils Steinger : > > https://mmonit.com/monit/documentation/monit.html#PERMISSION-TEST > > On 2017-08-03 21:00, Tino Hendricks wrote: >> De

Monitoring /dev/ttyUSB*

2017-08-03 Thread Tino Hendricks
Dear list, is there any chance to check permissions on a device like /dev/ttyUSB0 without use of an external script? Thanks in advance! Tino -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general

Re: [Monit± Protocol test on high port returns 404 even if website is present

2017-05-31 Thread Tino Hendricks
Hi, knowing fairly nothing about jabber and register I remember a similar case where we had to add the type like if failed port 8443 type tcpSSL protocol http with timeout 20 seconds… Maybe you’d give it a try? Best, Tino > Am 31.05.2017 um 15:00 schrieb shadow : > > Hello Monit community,

Re: Monit Output

2017-02-11 Thread Tino Hendricks
Howdy! I don’t think monit is a good tool for that. Which doesn’t mean you can’t accomplish it that way but I guess it’s unnecessary hard. I’m using a cron job for the output of /bin/head -n 1 /proc/stat (for load) and so on and feed it to e.g. rrdtool for graphical representation. Tino > Am

Re: Periodic Heartbeat EMails

2017-01-25 Thread Tino Hendricks
Just out of curiosity, what is the benefit of having mails sent to you regardless of the system state? I always consider it the biggest advantage of a monitoring that it _alerts_ you actively in case of emergency. Am 23. Januar 2017 um 17:59:56, Paul Tiseo (paulxti...@gmail.com(mailto:paulxti.

Re: monitoring for absence of a string

2016-11-29 Thread Tino Hendricks
Ha! That’s a tricky one! I’m a big fan of handling these kinds of tasks in an external script and letting monit deal with the result of this script. The difficulty here IMHO is that the pure *absence* of the desired string is not the problem but the absence in… what? 60 seconds? last 500 log line

Re: monitoring users on system

2016-10-27 Thread Tino Hendricks
Hi! How about utilizing the output of who | wc -l ?? HTH Tino > Am 27.10.2016 um 21:45 schrieb Justin Rodino : > > Is there a way with monit to monitor the user count logged in to a system > with the system derivative or some other alternative like there is load, cpu, > memory? > > T

Re: Checking on a url does not work (from newbie)

2016-09-18 Thread Tino Hendricks
ailed url http://www.oratorienchor.de/index.php and content == 'klassische Chorkonzerte' then alert > Am 18.09.2016 um 14:52 schrieb Moshe Cohen : > > I did actually, and it fails too, reporting a 404. > Both methods reach the same problem. > > On Sun, Se

Re: Checking on a url does not work (from newbie)

2016-09-18 Thread Tino Hendricks
Did you try If failed url https://arogacentertest.norbltd2.com/checkalive... ? Tino > Am 17.09.2016 um 22:20 schrieb Moshe Cohen : > > I have the following url, that when called with https, return 200 as shown > here: > > > curl -i https://arogacentertest.norbltd2.com:443/checkalive > HTTP/

Re: Restarting service on http request timeout

2016-09-14 Thread Tino Hendricks
I’ve only been successful with something like (translated to your data)    if failed url        http://www.binostore.com/index.php        and content == 'whatever_text_you_normally_get'        then alert Take care Tino Am 14. September 2016 um 09:48:52, Fabio Bozzo (f.bo...@3-w.it(mailto:f.

Re: monitoring the number of processes

2016-08-12 Thread Tino Hendricks
I would go for a simple script containing something like ps aux | grep the_process_name | grep -v grep | wc -l and check for the number. Tino > Am 12.08.2016 um 14:12 schrieb Stephen Berg (Contractor) > : > > Is there a way to monitor a daemon that is supposed to have exactly one > process s

Re: Seeing momentary SSL connection errors for host checks

2016-08-10 Thread Tino Hendricks
Phil, if I remember correctly I had similar messages ~1 year ago after upgrading ssl. Is it possible you upgraded? And if so, is it possible you need to restart some services, upgrade all machines to the same versions and/or need to upgrade keys to the accepted versions? Sorry for my bad memory

Re: monitoring vsftpd

2016-06-08 Thread Tino Hendricks
that's one solution > > Nick Upson, > Principal Operations Engineer, Telensa Ltd. > Direct +44 (0) 1799 533252, Support Hotline +44 (0) 1799 399200 > > > On 8 June 2016 at 14:26, Tino Hendricks wrote: > Would this help? > http://serverfault.com/questions/312964/disa

Re: monitoring vsftpd

2016-06-08 Thread Tino Hendricks
Would this help? http://serverfault.com/questions/312964/disable-monit-alerts-when-pid-changed > Am 08.06.2016 um 15:17 schrieb Nick Upson : > > Hi > > We have several systems that monitor vsftpd to make sure its up and ok, but > keep getting > alerts like this > > Date HostService Action

Re: Distinguish crash vs normal restart

2016-06-06 Thread Tino Hendricks
> Am 06.06.2016 um 10:31 schrieb Ani A : > >> Does the application leave a pid-file behind in case of crash? Then I would >> go for that. >> >> >>> Am 03.06.2016 um 08:10 schrieb Ani A : >>> >>> Hello, >>> >>> I want to run a script when Monit detects that my application has >>> _crashed_ (n

Re: Distinguish crash vs normal restart

2016-06-03 Thread Tino Hendricks
Does the application leave a pid-file behind in case of crash? Then I would go for that. > Am 03.06.2016 um 08:10 schrieb Ani A : > > Hello, > > I want to run a script when Monit detects that my application has > _crashed_ (not normal restart) more than 4 times in a given duration. > I saw the

Re: iptables? bastille?

2016-04-07 Thread Tino Hendricks
Mate, I don’t think you can check it that way because iptables (I don’t know bastille) isn’t a running program but a kind of toolbox to manage the kernel’s internal firewall. The question is: What do you want to check here? If it is the state or the current rules the only thing that comes to my

Re: SSL Error | Handshake Failure

2016-02-07 Thread Tino Hendricks
Chuck, I reckon you just restarted monit after a long time with an ssl library updated months before. Which just came into effect now. There were many updates to the ssl library recently (e.g. which protocols and key lengths are supposed to be valid etc.) Same happened to me… :-/ Tino > Am 07.

Re: Problems with the load of my servers

2016-01-14 Thread Tino Hendricks
Hello, sounds to me like essentially you don’t want synchronous execution. So why not „concat" all XX.sh into a single 1_to_25.sh and let it handle it sequentially? Tino > Am 14.01.2016 um 10:06 schrieb Ferran Mengibar Pastor > : > > Hello, > I have a problem with the load of my servers and

Re: simple way to send a chunk from a log file with the alert email

2015-10-10 Thread Tino Hendricks
I would trigger my own script, something like this if failed ….. with timeout 20 seconds for 4 times within 5 cycles then exec "/usr/bin/php /home/user/tailLogFileAndMail.php“ Best, Tino > Am 09.10.2015 um 22:33 schrieb Florin Andrei : > > I'm using Monit to supervise a series of node.js fron

Re: E-Mail alerts

2015-10-02 Thread Tino Hendricks
> > or set... > set mail-format { from: blahb...@gmail.com } > > The email is then sent to blahb...@gmail.com; again using the From: as the > to: as well... > > Thanks for the reply! > > > > On Fri, Oct 2, 2015 at 2:25 PM, Tino Hendricks wrot

Re: E-Mail alerts

2015-10-02 Thread Tino Hendricks
Larry, dunno if I get you right, but if I enter set mail-format { from: w...@nice2cu.de } mails arrive with headers Return-Path: … From: w...@nice2cu.de …. What doesn’t work with your setup? Best, Tino > Am 02.10.2015 um 17:45 schrieb Larry Smith : > > All, > I have just gone t

Re: YAJSW wrapper service monitor

2015-09-04 Thread Tino Hendricks
Sorry for a dumb question maybe: Is there a slash („/„) missing in front of „usr/local…“? Tino > Am 04.09.2015 um 17:01 schrieb frwa onto : > > Hi All, > I have managed to run a java service using the this tool called > YAJSW. In the bin folder for each service being managed you have a

Re: check URL with basic auth

2015-08-26 Thread Tino Hendricks
Gerrit, I for myself only check the availability of the _login_procedure_, like check host myhost with address example.com if failed port 443 send "GET /directory_name HTTP/1.1\r\nHost: example.com :443\r\n\r\n" expect "HTTP/[0-9\.]{