Re: httpd $HOST not expanded.

2015-01-26 Thread Martin Pala
Hello, the address option binds Monit HTTP to specific interface ... if you omit this option completely, Monit will bind to all interfaces - the specific bind should be used carefully and usually is used only when you want to limit the HTTP interface to loopback/127.0.0.1 only and prevent

Re: more user friendly filesystem space messages and checks

2015-02-04 Thread Martin Pala
1321079524 blocks matches resource limit [space usage1320941372 blocks] On Wed, Oct 29, 2014 at 3:27 AM, Martin Pala mart...@tildeslash.com wrote: Hello, the space usage messages (and any other byte unit based values) were modified in Monit 5.9 to automatically scale the unit ... please upgrade

Re: Before I fix this

2015-02-06 Thread Martin Pala
Hi Rory, Monit reports process uptime in minutes since Monit 5.4. There is also uptime test, example: check process myapp with pidfile /var/run/myapp.pid start program = /etc/init.d/myapp start stop program = /etc/init.d/myapp stop if

Re: Exec missing part of output

2015-02-12 Thread Martin Pala
Hi, if you're running monit 5.10 or newer, please run monit in debug mode and check output (monit will log program's output): monit -vI you can modify also modify the exec action to log the output including errors: if failed ... then exec /bin/bash -c

Re: Monit and mailq size

2015-01-29 Thread Martin Pala
Hello, Monit doesn't have a native check for postfix queue size - using check program with a custom script is correct way to do it. Regards, Martin On 29 Jan 2015, at 18:00, Fabien Morcamp fabmaill...@gmail.com wrote: Nobody have ideas for me ? Regards 2015-01-23 11:41 GMT+01:00

Re: Is it possible to alert based on a cron-style string?

2015-01-29 Thread Martin Pala
Hello Marcus, there is no support for cron-style alert filter currently, but it could be certainly useful and we may add it in the future. I think the workaround with two checks will work, another solution could be to use exec action with custom script, which will send mail (using for example

Re: monit file tailing behavior during reload

2015-01-29 Thread Martin Pala
Hello John, the read position resets only of the file's inode changed and the file shrunk at least by one byte. As the file content monitoring was designed primarily for logfiles, Monit saves the read position in the state file even across Monit reload/restart to not check the same content

Re: Monit improvement

2015-01-26 Thread Martin Pala
Hello, you can see the poll time in the runtime info which is accessible via the Monit is [running] ... link (or directly http[s]://monit host:monit port/_runtime) Regards, Martin On 26 Jan 2015, at 17:23, Kizito Porta Balanyà kfe...@gmail.com wrote: Hello, I think that would be

Re: Problem keeping a program running after monit starts it

2015-01-26 Thread Martin Pala
Hello, it is possible that the /usr/bin/python /home/pi/temperature/post_temps.py script forks and thus the resulting daemon has different PID then what you write to the pidfile before you call this script. You can either modify the python script itself to create/update the pidfile or you can

Re: no suitable credentials found in monit configuration file

2015-01-05 Thread Martin Pala
Monit users are independent of M/Monit accounts - if you want to be able to perform actions (start/stop/restart/monitor/unmonitor) for Monit services via M/Monit, you should add the allow username:password to Monit and set the same in M/Monit's Host admin for the given host (if the mentioned

Re: Permission test failed -- current permission is 0000

2015-01-14 Thread Martin Pala
Which Monit version it is? Please can you run Monit in debug mode and send output and send the logfile?: 0.) make sure you have set logfile statement in your monit configuration file 1.) stop monit 2.) start monit in debug mode and collect output: monit -v 3.) when the problem will occur, send

Re: Before I fix this

2015-02-09 Thread Martin Pala
On 06 Feb 2015, at 15:03, Rory Toma r...@trs80.net wrote: On 2/6/15 2:45 AM, Martin Pala wrote: Hi Rory, Monit reports process uptime in minutes since Monit 5.4. There is also uptime test, example: check process myapp with pidfile /var/run/myapp.pid start program

Re: Before I fix this

2015-02-10 Thread Martin Pala
it's because of OpenBSD which uses always 64-bit time_t even on 32-bit platforms since OpenBSD 5.5 (used for process starttime) On 10 Feb 2015, at 21:34, Rory Toma r...@trs80.net wrote: Thanks. In xml.c, is there any reason that is has to be a (long long)? On 2/9/15 9:48 AM, Martin Pala

Re: check file content without alert if file does not exist

2015-01-05 Thread Martin Pala
Hi Ben, you can filter out the existence event in M/Monit (all other events will be delivered): Regards, Martin On 24 Dec 2014, at 15:29, Ben Soot ben.s...@gmail.com wrote: Hi I am using monit 5.4 - cannot upgrade b/c shared c compiler lib of debian wheezy (would have to upgrade

Re:

2015-03-18 Thread Martin Pala
Hi, please check your Monit version (monit -V), the network monitoring was added in Monit 5.11. Regards, Martin On 18 Mar 2015, at 10:37, Martin van Diemen martin.van.die...@gmail.com wrote: Hi, I want to monitor my network interfaces with monit. I've created the following basic

Re:

2015-03-18 Thread Martin Pala
but monit.log shows: [CET Mar 18 13:04:32] error: 'eth0:0' link data gathering failed -- Cannot read /sys/class/net/eth0:0/operstate -- No such file or directory Does monit support virtual interfaces? Martin On Wed, Mar 18, 2015 at 1:09 PM, Martin Pala mart...@tildeslash.com wrote: We're

Re:

2015-03-18 Thread Martin Pala
, Martin On 18 Mar 2015, at 11:18, Martin van Diemen martin.van.die...@gmail.com wrote: Thanks Martin, $ monit -V This is Monit version 5.6 Do you know a repository with a recent version? Thanks. Groeten, Martin On Wed, Mar 18, 2015 at 11:04 AM, Martin Pala mart

Re:

2015-03-18 Thread Martin Pala
on both ethernet adapters so I used the IP address instead. Thanks again! Martin On Wed, Mar 18, 2015 at 1:54 PM, Martin Pala mart...@tildeslash.com mailto:mart...@tildeslash.com wrote: The virtual interface (IP alias) doesn't have it's own network statistics ... it's part of the parent

Re: Processes dependencies

2015-03-17 Thread Martin Pala
Hi Guido, the dependencies in Monit are currently soft ... Monit performs the actions based on the dependency tree, but doesn't wait/verify that the parent service is functional before starting children services. We plan to fix the dependencies to work exactly the same as you described.

Re: monit start/stop in a synchronous mode

2015-03-17 Thread Martin Pala
Thanks for feedback, yes, we plan to implement the CLI wait. Regards, Martin On 16 Mar 2015, at 23:23, mmrobins m...@mattrobinson.net wrote: On 14 Oct 2014, at 13:46, Alainkr lt;akreienbuhl@gt; wrote: We have added the CLI wait and result report feature to our TODO list, currently the

Re: Processes dependencies

2015-03-17 Thread Martin Pala
On 17 Mar 2015, at 13:20, Guido Accardo gu...@motrixi.com wrote: We plan to fix the dependencies to work exactly the same as you described. That sounds great. Do you have something like a roadmap, scheduled features list or maybe a feature branch of code to keep a look at the progress?

Re: Local Alerts?

2015-03-17 Thread Martin Pala
The alert recipient definition is independent of alert action. The correct syntax is: check process apache with pidfile /var/run/httpd/httpd.pid if failed host hostname port 8080 protocol apache-status replylimit 75% then alert # test definition (uses alert action) alert

[Announce] Monit 5.12.1

2015-03-09 Thread Martin Pala
Hi, all! We have just released Monit 5.12.1. Please visit http://mmonit.com/monit/ to download the new Monit release. Release Notes: == See http://mmonit.com/monit/changes/ for a complete list of changes in this release. Contact: If you have questions, comments or any

Re: Description mail alert - Arguments not passed

2015-03-06 Thread Martin Pala
Hi, you can customize the message format this way: http://mmonit.com/monit/documentation/monit.html#Message-format Regards, Martin On 06 Mar 2015, at 15:11, Kizito Porta Balanyà kfe...@gmail.com wrote: Hello, Yes, it can be done with your solution and sometimes it is ok, but in this

Re: Restarting after x cycles of downtime

2015-03-05 Thread Martin Pala
Hi, first - when the process is monitored by Monit, you should either restart it gracefully via Monit or at least disable the monitoring before manual actions: Either: monit restart jetty8 # restart via Monit Or: monit unmonitor jetty8 # disable monitoring

Re: monit 5.12 sending to Exchange

2015-03-05 Thread Martin Pala
Hello Len, please can you post the error message from monit log and catch network trace of the communication between Monit and Exchange? The communication in the network trace from December 22 2014 wasn't related to Monit as client - it was some unrelated email sent via Exchange. Regards,

Re: alert/mail-format syntax questions

2015-03-05 Thread Martin Pala
Hi, the custom formats shouldn't be necessary since 5.12 - as you noted, the event description for space usage event was changed to use bytes (with dynamic scaling to kB/MB/GB/etc.) instead of absolute blocks count. Regarding the monitor all and multiple alerts ... please can you send related

Re: Monit zombie processes

2015-03-12 Thread Martin Pala
Hi, the zombie can be related to check program statement - as the program check collects the status from the program in the next cycle, when the program exits, it becomes zombie until next monit cycle. It is documented in Monit manual with more details:

Re: Monit zombie processes

2015-03-12 Thread Martin Pala
The number of zombies should match the total count of check program statements in your monit configuration file. On 12 Mar 2015, at 17:02, Roman Kournjaev kournj...@gmail.com wrote: I have a few configuration files with 7 checks. On Thu, Mar 12, 2015 at 8:44 AM, Martin Pala mart

Re: Soft and hard stop command

2015-03-13 Thread Martin Pala
Yes, this should work. Also note that you can simplify connection test - monit 5.10 and newer have support redis protocol test: check process redis with pidfile /usr/local/redis/redis.pid start program = /usr/local/redis/start.sh with timeout 60 seconds stop program =

Re: Monit zombie processes

2015-03-12 Thread Martin Pala
be related to a recent version update. I am trying to keep up to date with monit releases. On Thu, Mar 12, 2015 at 9:13 AM, Martin Pala mart...@tildeslash.com wrote: The number of zombies should match the total count of check program statements in your monit configuration file. On 12 Mar

Re: How to handle locked/frozen monit?

2015-03-09 Thread Martin Pala
On 09 Mar 2015, at 07:04, Adam Nielsen adam.niel...@uq.edu.au wrote: Assuming you are running monit from init, it might work to do an init q to force init to rescan what it's running - then try killing it. Just a guess really. Hmm, actually, I seem to recall hitting this once

Re: Variables

2015-03-24 Thread Martin Pala
The variables are currently only supported in the mail-format and check system + environment variables for program execution. Regards, Martin On 24 Mar 2015, at 13:36, Maciej Ostaszewski maciej.ostaszew...@gmail.com wrote: Is it possible to use variables in all config options? There

Re: monit alerts with exec

2015-03-24 Thread Martin Pala
Hello, the native alert action sends the alert on state change only (the reminder option may send alert again if the problem persists). The exec action is executed each time the test failed, as monit delegates full responsibility for the event processing to the script and cannot assume the

Re: SHA256 hashes

2015-03-30 Thread Martin Pala
OK, added. Regards, Martin On 29 Mar 2015, at 21:08, Leif Gustafson l...@leifgustafson.com wrote: Clarification, they are missing for the binary releases only. I had a script to build a docker image of monit that broke because it couldn't download the sha256 hash to verify the binary

Re: Feature request: Support wildcards in PID files

2015-03-23 Thread Martin Pala
Hi, you can try the pattern based process check provided each nodejs instance in the process table is unique ... you can check the pattern using monit procmatch CLI command. Regards, Martin On 19 Mar 2015, at 15:52, Kristopher Linquist k...@linquist.net wrote: Hi, I know this question

[Announce] Monit 5.12

2015-02-25 Thread Martin Pala
Hi, all! We have just released Monit 5.12. Please visit http://mmonit.com/monit/ to download the new Monit release. Release Notes: == See http://mmonit.com/monit/changes/ for a complete list of changes in this release. Most notable is that Monit now supports IPv6 testing.

[Announce] Monit 5.12.2

2015-03-23 Thread Martin Pala
Hi, all! We have just released Monit 5.12.2. Please visit http://mmonit.com/monit/ to download the new Monit release. Release Notes: == See http://mmonit.com/monit/changes/ for a complete list of changes in this release. Contact: If you have questions, comments or any

Re: monit alerts with exec

2015-03-26 Thread Martin Pala
script captures some performance data from a script when the threshold is reached but I only want it executed -emailed to me once. From: monit-general-bounces+alan.rubin=sappi@nongnu.org [mailto:monit-general-bounces+alan.rubin=sappi@nongnu.org] On Behalf Of Martin Pala Sent

Re: monit alerts with exec

2015-03-26 Thread Martin Pala
conditions would it be used? From: monit-general-bounces+alan.rubin=sappi@nongnu.org [mailto:monit-general-bounces+alan.rubin=sappi@nongnu.org] On Behalf Of Martin Pala Sent: Thursday, March 26, 2015 10:22 AM To: This is the general mailing list for monit Subject: Re: monit alerts

Re: List All Linux Process

2015-04-03 Thread Martin Pala
Hello, monit currently doesn't list all processes - just those defined with check process statement. Regards, Martin On 31 Mar 2015, at 20:56, Life Life sadlife1...@gmail.com wrote: Hello, I'm newbie for monit tool. I'm testing monit for arm cortex based system. we are using

Re: REST access

2015-04-03 Thread Martin Pala
Hi, Monit doesn't have a REST API. M/Monit provides extended HTTP-API, see more here: http://mmonit.com/documentation/http-api/ Regards, Martin On 26 Mar 2015, at 23:12, john alexander sanabria ordonez john.sanab...@correounivalle.edu.co wrote: hi, I found monit pretty versatile and

Re: Newbie issues setting up

2015-04-03 Thread Martin Pala
Hi, please upgrade monit (5.12.2 recommended) ... there was problem with starting some processes like Apache on CentOS 6.x in old Monit version due to upstart race condition (fixed in Monit 5.9). Regards, Martin On 01 Apr 2015, at 20:56, Alex W azj...@gmail.com wrote: Hey, I'm trying

Re: Feature request- Superuser

2015-04-09 Thread Martin Pala
Hi Kris, we plan to add this feature to M/Monit. Monit’s own CLI and GUI will keep simple access control, you can use “sudo” to grant access to some CLI commands to other users. Regards, Martin On 03 Apr 2015, at 19:23, Kristopher Linquist k...@linquist.net wrote: I’d like to be able to

Re: M/Monit: Stop alert on monit reload

2015-04-14 Thread Martin Pala
Hi, yes, you can filter out the “Monit instance” event in the alert rule: Regards, Martin On 10 Apr 2015, at 21:16, Kristopher Linquist k...@linquist.net wrote: Hi, M/Monit alerts on Monit clients reloading - is there a way to silence this? -Kris -- To unsubscribe:

Re: file size check not working

2015-04-21 Thread Martin Pala
Hi Len, i cannot reproduce the problem … which Monit version it is? (monit -V) Added the following configuration to monitrc: check file test with path /tmp/test if size 200 B then alert Then created test file and appended some bytes during several monit cycles

Re: timeout with host test gives unexpected results

2015-04-23 Thread Martin Pala
Hello Marcus, this problem was fixed already, please upgrade monit. Regards, Martin On 22 Apr 2015, at 17:19, Marcus Mülbüsch m.muelbue...@as-infodienste.de wrote: Hello all, a simple test like: check host example.com with address www.example.com if failed

Re: Monitoring the disk usage of the contents of a folder.

2015-05-08 Thread Martin Pala
Hi, the filesystem check doesn’t check the directory size … if you use path which belongs to some filesystem, the size of the parent filesystem is showed - not the directory. There is standalone directory check, but it doesn’t support size check currently, but as it could be useful we may add

[Announce] Monit 5.13

2015-05-05 Thread Martin Pala
Hi, all! We have just released Monit 5.13. Please visit http://mmonit.com/monit/ to download the new Monit release. Release Notes: == See http://mmonit.com/monit/changes/ for a complete list of changes in this release. Contact: If you have questions, comments or any

Re: start program only works with wrapper script

2015-05-05 Thread Martin Pala
Hi, please try to run Monit in debug mode: 1.) stop monit 2.) start it in debug mode: monit -v 3.) try to start the service: monit start wbm003 4.) collect output from the logfile Regards, Martin On 04 May 2015, at 18:55,

Re: Process fails to restart on newer versions of monit

2015-05-13 Thread Martin Pala
Please make sure monit logging is enabled (the “set logfile” statement) + run Monit in debug mode (-v option), try to reproduce the problem and send logs. Regards, Martin On 13 May 2015, at 07:15, Shrinath M shrinath...@yahoo.co.in wrote: I am using AWS Opsworks and AWS uses an old version

Re: Process fails to restart on newer versions of monit

2015-05-13 Thread Martin Pala
= active --- Monit daemon with PID 26769 awakened On Wed, May 13, 2015 at 11:37 AM Martin Pala mart...@tildeslash.com wrote: Please make sure monit logging is enabled (the “set logfile” statement) + run Monit

Re: Process fails to restart on newer versions of monit

2015-05-13 Thread Martin Pala
You will probably need to debug the opsworks-agent start script and/or opsworks-agent logs itself … monit started the script, but it’s not possible to say why it stopped in the middle. Monit 5.9 and newer logs error output from the program if it failed, so it seems it didn’t return any error.

Re: M/Monit: HTTP 408 Request Timeout

2015-04-03 Thread Martin Pala
to specify multiple collector endpoints in the monitrc config. Rather than hot-hot instances it might be better to have a hot-cold setup to avoid the cache issues you mentioned? On Apr 3, 2015, at 1:08 PM, Martin Pala mart...@tildeslash.com wrote: Hello Thomas, the request timeout may

Re: content match

2015-06-06 Thread Martin Pala
Hello Petra, there is no native support for pausing monitoring for x seconds after some event occurred. It is possible to wait for x errors before the event is triggered (i.e. require multiple occurrences of the problem) - i’m not sure if it corresponds your needs in this case, example usage:

[Announce] Monit 5.14

2015-06-09 Thread Martin Pala
Hi, all! We have just released Monit 5.14. Please visit http://mmonit.com/monit/ to download the new Monit release. Release Notes: == See http://mmonit.com/monit/changes/ for a complete list of changes in this release. Contact: If you have questions, comments or any

Re: Zombie processes and exit code retrieval

2015-06-22 Thread Martin Pala
Hi, the refactoring of the test scheduler mentioned in the manual with fix for program execution already begun. Regards, Martin On 22 Jun 2015, at 20:05, Struan Bartlett struan.bartl...@newsnow.co.uk wrote: Hi I'd like to query the rationale for a behaviour I've experiencing in

Re: Monit: 'Matching' functionality isn't working

2015-06-24 Thread Martin Pala
On 24 Jun 2015, at 22:33, Marie Mcallister mmcallis...@sprinklr.com wrote: ​Hi Martin, ​The problem is with the 'Start' command. The proc match works fine, the check detects ​when the process is down. ​For example, if I just use this outside of monit, it works fine to bring back

Re: Zombie processes and exit code retrieval

2015-06-23 Thread Martin Pala
this is likely to take weeks or months before being available? On 22/06/2015 20:13, Martin Pala wrote: Hi, the refactoring of the test scheduler mentioned in the manual with fix for program execution already begun. Regards, Martin On 22 Jun 2015, at 20:05, Struan Bartlett struan.bartl

Re: notification of (action) restarts aren't sent

2015-06-11 Thread Martin Pala
On 11 Jun 2015, at 11:48, Jo Rhett jrh...@netconsonance.com wrote: On Jun 11, 2015, at 2:32 AM, Martin Pala mart...@tildeslash.com wrote: You apply the “action” from one section to event types in completely different context - there is no connection between these two sections. I am

Re: Monit: 'Matching' functionality isn't working

2015-06-18 Thread Martin Pala
Hello Marie, you can test the pattern using CLI: monit procmatch “pattern” If you won’t find the pattern, please post output of the real process: “ps -ef | grep example_process”, so we can test the match. Regards, Martin On 18 Jun 2015, at 04:38, Marie Mcallister

Re: notification of (action) restarts aren't sent

2015-06-11 Thread Martin Pala
The “action” event is triggered for CLI/GUI manual actions only (such as “monit start apache”). If monit detects some error it sends failure notification and the recovery notification when the problem is fixed = two emails are normal. Regards, Martin On 10 Jun 2015, at 21:17, Jo Rhett

Re: mmonit / monit upgraded to latest version - host appear as localhost

2015-06-03 Thread Martin Pala
Hi, please check your monit configuration - if the “check system string” statement is used, then it sets a custom name which overrides the hostname, i.e. if for example “check system localhost” is present, the hostname will be “localhost”. You can use “check system $HOST” to use the current

Re: notification of (action) restarts aren't sent

2015-06-11 Thread Martin Pala
PM, Martin Pala mart...@tildeslash.com wrote: The “action” event is triggered for CLI/GUI manual actions only (such as “monit start apache”). If monit detects some error it sends failure notification and the recovery notification when the problem is fixed = two emails are normal. I believe

Re: MySQL monitoring - Host 'linux.local' is blocked because of many connection errors

2015-05-25 Thread Martin Pala
. Regards, Srini -Original Message- From: monit-general-bounces+srinivasan.thandapani=aricent@nongnu.org [mailto:monit-general-bounces+srinivasan.thandapani=aricent@nongnu.org] On Behalf Of Martin Pala Sent: Friday, May 22, 2015 6:00 PM To: This is the general mailing list

Re: check directories and files with wildcard names

2015-05-21 Thread Martin Pala
Hi, currently wildcards are not supported, we plan to add this in the future. Regards, Martin On 20 May 2015, at 18:11, Tiago Almeida tiago.alme...@gmail.com wrote: Hi, is there anyway i could check the user owner for wildcard name directories our files ? From what i've read so far

Re: MySQL monitoring - Host 'linux.local' is blocked because of many connection errors

2015-05-21 Thread Martin Pala
Hi, i’m unable to replicate the issue with the mysql protocol check using the following Monit configuration (with 1s poll interval): —8— check host mysql_server with address 1.2.3.4 if failed port 3306 protocol mysql then alert —8— Tested with following MySQL servers: 1.) MySQL 5.1.73 on

Re: MySQL monitoring - Host 'linux.local' is blocked because of many connection errors

2015-05-22 Thread Martin Pala
the blocked host error message are trigger the issue. Regards, Martin On 21 May 2015, at 22:18, Martin Pala mart...@tildeslash.com wrote: Hi, i’m unable to replicate the issue with the mysql protocol check using the following Monit configuration (with 1s poll interval): —8— check host

Re: dependency not work with Execution failed situation

2015-08-21 Thread Martin Pala
Hello Hillary, the current dependency implementation is very limited - it follows the dependency tree/sequence correctly, but doesn’t wait for the parent service to be online before starting a child … it starts the parent and then child immediately. We work on the fix along with other

Re: General reset of process after 12 hours

2015-08-20 Thread Martin Pala
Hi, you can use the uptime test: https://mmonit.com/monit/documentation/monit.html#PROCESS-UPTIME-TESTING Regards, Martin On 20 Aug 2015, at 12:17, anonym...@fsociety.info wrote: Hi all, Just wondering if there is a way for monit to reset a process every 12 hours due to a

Re: syntax error 'then

2015-07-28 Thread Martin Pala
You need to specify full test/condition … for example if you want to execute the command if process doesn’t exist: check process mongod with pidfile /data/db/mongodb.pd start program = “/etc/init.d/mongod start stop program = “/etc/init.d/mongod stop if does not exist then exec “

Re: Monit startup issues on Centos7

2015-08-05 Thread Martin Pala
Hi, the PID file path is set by “set pidfile” statement in monitrc. The default path is ~/.monit.pid. If your startup script (regardless of platform) expects specific path to pidfile, the monit configuration needs to be updated accordingly. Regards, Martin On 05 Aug 2015, at 06:08, Biju

Re: [Announce] Monit 5.15

2015-10-22 Thread Martin Pala
Hi, yes, we plan to add this feature, but we have no schedule yet. Best regards, Martin > On 22 Oct 2015, at 17:05, admin-at-extremeshok-dot-com > wrote: > > Any chnace for a multi-user mmonit ? ie. restrict hosts to specific users > -- To unsubscribe:

[Announce] Monit 5.15

2015-10-22 Thread Martin Pala
Hi, all We have just released Monit 5.15 with many fixes and improvements Download: https://mmonit.com/monit/#download Release Notes: == Some of the highlights are, SSL client/server verification and authentication. A new SSL

Re: Correct method to monitor service?

2015-11-10 Thread Martin Pala
dentials my machine does not have gnome or > graphical ui. Is it ok if I set just like this and why cant we disable the > gui access as in my case I dont need it at all. > > set httpd port 2812 and > use address localhost # only accept connection from localhost > > &

Re: monit restart service after reload

2015-11-10 Thread Martin Pala
Which monit version it is? (monit -V) Regards, Martin > On 11 Nov 2015, at 01:04, Terry Duncan wrote: > > I have a script which does a monit reload and then a monit restart service. > The monit restart returns 0 for success but does not actually restart the > service

Re: Correct method to monitor service?

2015-11-09 Thread Martin Pala
lease add > the 'set httpd' statement ? Should I start using monit start command or can I > use the existing method to start it? Which the correct one? > > On Mon, Nov 9, 2015 at 11:27 PM, Martin Pala <mart...@tildeslash.com> wrote: > Hi, > > correct syntax is: > >

Re: Correct method to monitor service?

2015-11-09 Thread Martin Pala
Hi, correct syntax is: monit start service1 Regards, Martin > On 09 Nov 2015, at 16:23, frwa onto wrote: > > Hi, > I have set below in my monit.conf. > > check process service1 with pidfile /var/run/wrapper.service1.pid > start program =

Re: Correct method to monitor service?

2015-11-09 Thread Martin Pala
; readonly > # > must I do any other configuration for port 2812 ? Cause I get this error > Cannot create socket to [localhost]:2812 -- Connection refused > In my case my centos is bare minimal with got gnome nothing ? > > > > On Mon, Nov 9, 2015 at 11:39 PM, Martin P

Re: Correct method to monitor service?

2015-11-09 Thread Martin Pala
ct to the server and > allow admin:monit # require user 'admin' with password 'monit' > > On Tue, Nov 10, 2015 at 1:03 AM, Martin Pala <mart...@tildeslash.com > <mailto:mart...@tildeslash.com>> wrote: > Please make sure you did "monit reload" after confi

Re: Correct method to monitor service?

2015-11-10 Thread Martin Pala
> ./startDaemon.sh monit is monitoring it right please correct me? Another > thing do you want me to change this (you should change the credentials to > something else then default "admin:monit") any reason? If I dont enable it > does not work right? > > > > On

Re: Monit/PAM: supplied wrong password for user '...' accessing monit httpd

2015-11-13 Thread Martin Pala
Hi, the PAM configuration example from monit manual sets access for traditional unix users (/etc/passwd + /etc/shadow), if you use LDAP, you'll need to modify it. Regards, Martin > On 22 Sep 2015, at 11:59, Martin Pala <mart...@tildeslash.com> wrote: > > Hi, > >

Re: Config working on CentOS 5 stopped working on CentOS 6

2015-11-16 Thread Martin Pala
Hi, please can you provide more details about the problem? (error messages and/or monit log). Note that monit 5.9 includes fix for program execution for CentOS6/RHEL6, we recommend upgrade to latest monit version (5.15), you can get it here: https://mmonit.com/monit/#download. You can build

Re: monit restart service after reload

2015-11-12 Thread Martin Pala
Please can you test with monit 5.15? The program execution in monit 5.15 was modified to return error in case of problem. Regards, Martin > On 11 Nov 2015, at 01:48, Terry Duncan <terrysdun...@gmail.com> wrote: > > This is Monit version 5.14 > > > On Tue, Nov 10,

Re: Best practice to monitor google-chrome

2015-11-04 Thread Martin Pala
Using match based "check process" should be possible, but you need unique pattern - if multiple processes match the pattern, monit will report that the process is running. You can test the pattern using: monit procmatch "chrome" Regards, Martin > On 04 Nov 2015, at 10:19, Joost

Re: Avoid alert on log rotation

2015-11-05 Thread Martin Pala
Hello, monit tests if the process is running - it cannot differentiate that the process was stopped intentionally by 3rd party action ... if you shutdown the process intentionally during logrotate, you should disable its monitoring first (part of logratotation "prerotate" script):

Re: Best practice to monitor google-chrome

2015-11-05 Thread Martin Pala
Any thoughts about option 1? How to fix the ‘recurring action’? > > > Op 4 nov. 2015, om 22:01 heeft Martin Pala <mart...@tildeslash.com > <mailto:mart...@tildeslash.com>> het volgende geschreven: > >> Using match based "check process" should

Re: Avoid alert on log rotation

2015-11-06 Thread Martin Pala
rt is failing, the monitoring is still issued. > > Another workaround would be to check the status of the "monit check" and if > this status is "unmonitor" for several cycles, force "monitoring" again in > order to be notified that something bad happe

Re: Group access permissions

2015-10-14 Thread Martin Pala
Hi, thanks for the report and perfect instructions how to replicate the problem :) There really was a problem when the program was executed as different UID ... the secondary groups of the given UID were not set. The problem is fixed now (fix will be part of upcoming monit-5.15), you can test

Re: how to send an alert only on unmonitor

2015-10-14 Thread Martin Pala
It depends on what type of unmonitor you mean: 1.) the service can be unmonitored manually (by administrator) via monit CLI or GUI … this type of unmonitor sends an “action” event type (the same event type is shared however by any other manual action: start/stop/restart/monitor/unmonitor)

[Announce] Monit 5.15-beta

2015-10-11 Thread Martin Pala
Hi, all We have released Monit 5.15-beta with lots of improvements in the SSL area with a very useful support for a notification that the SSL certificate is going to expire, so you won’t forget to renew it on time, improvements of the service dependency and many small fixes. The beta is

Re: Monit and BackupPC

2015-10-13 Thread Martin Pala
I don’t use BackupPC, but it seems that you can set fixed port according to their documentation: $Conf{ServerPort} Monit also supports unix sockets, which seems to be supported by BackupPC too. Regards, Martin > On 12 Oct 2015, at 03:45, Mark Adams wrote: > >

Re: E-Mail alerts

2015-10-06 Thread Martin Pala
Please can you send your monit configuration to supp...@mmonit.com? Regards, Martin > On 02 Oct 2015, at 22:17, Larry Smith wrote: > > the only translation going on in my Postfix setup is as below. This works for > everything else and has for over a year. But anything

Re: arm cross compiled monit segv

2015-10-10 Thread Martin Pala
_.https://eXtremeSHOK.com > <https://extremeshok.com/> .______ > > On 10-Oct-15 12:56 PM, Martin Pala wrote: >> It is compile on Raspberry Pi 1 (ARMv6), should run on newer ARM >> architectures too (we test the same binary runs

Re: arm cross compiled monit segv

2015-10-10 Thread Martin Pala
Please can you test the pre-compiled binary: https://mmonit.com/monit/dist/binary/5.14/monit-5.14-linux-arm.tar.gz Regards, Martin > On 09 Oct 2015, at 17:50, Terry Duncan wrote: > > I have cross-compiled monit 5.13 for ARM and have it running on my ARM > system.

Re: arm cross compiled monit segv

2015-10-13 Thread Martin Pala
Thanks for info. We’re testing on RPI1 and RPI2 … the native build works here with -O3 without problems, will keep this issue in mind and set optimizations to -O0 if needed. Best regards, Martin > On 13 Oct 2015, at 00:07, Terry Duncan wrote: > > Message-ID:

Re: Custom email msgs in M/Monin

2015-08-27 Thread Martin Pala
Hi, yes, you can crate an alert rule with a specific filter for the given service name on the given host and assign it two actions. Regards, Martin On 26 Aug 2015, at 12:00, anonym...@fsociety.info wrote: Hey peeps, This is a specific service that I have that only changes PIDs when

Re: Custom email msgs in M/Monin

2015-08-28 Thread Martin Pala
, Dean On 2015-08-28 04:00, Martin Pala wrote: Hi, yes, you can crate an alert rule with a specific filter for the given service name on the given host and assign it two actions. Regards, Martin Screen Shot 2015-08-27 at 19.59.30.png On 26 Aug 2015, at 12:00

Re: E-Mail alerts

2015-10-02 Thread Martin Pala
Hi, which monit version it is? Regards, Martin > On 02 Oct 2015, at 20:59, Larry Smith wrote: > > I have even tried that. The following is what is happening. > I can either leave default which is > From: monit@$HOST > > or manually set > From: monit@$HOST > > and...

Re: Monit/PAM: supplied wrong password for user '...' accessing monit httpd

2015-09-22 Thread Martin Pala
Hi, did you add the PAM configuration for monit as described in the manual?: https://mmonit.com/monit/documentation/monit.html#PAM Regards, Martin > On 20 Sep 2015, at 14:26, Romain Pelisse wrote: > > No idea ? Nobody used groups to authentificate user ? > > On 17

  1   2   3   4   5   6   7   8   9   10   >