|
From: | Paul Theodoropoulos |
Subject: | Re: Unable to stop monit |
Date: | Tue, 9 Feb 2016 14:31:50 -0800 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:44.0) Gecko/20100101 Thunderbird/44.0 |
Completely unrelated to your issue, but a neat
trick with grepping for processes is to grep like this: ps aux |grep [m]onit That will keep the output from showing the grep command itself. regards, paul On 2/9/16 12:34, deranjer wrote:
I am unable to kill the monit process, unsure why or how to proceed: address@hidden:/etc/monit/conf.d# monit quit Monit daemon with pid [1269] killed address@hidden:/etc/monit/conf.d# ps aux | grep monit root 1269 0.0 0.1 15100 4652 ? D 13:55 0:01 /usr/bin/monit -c /etc/monit/monitrc root 23460 0.0 0.0 4568 2012 pts/2 S+ 16:18 0:00 grep monit address@hidden:/etc/monit/conf.d# service monit stop address@hidden:/etc/monit/conf.d# service monit status ● monit.service - LSB: service and resource monitoring daemon Loaded: loaded (/etc/init.d/monit) Active: failed (Result: exit-code) since Tue 2016-02-09 16:15:21 EST; 4min 13s ago Process: 23315 ExecStop=/etc/init.d/monit stop (code=exited, status=1/FAILURE) Process: 890 ExecStart=/etc/init.d/monit start (code=exited, status=0/SUCCESS) Feb 09 13:55:52 DMZ-Server monit[890]: Starting daemon monitor: monit. Feb 09 13:55:52 DMZ-Server systemd[1]: Started LSB: service and resource monitoring daemon. Feb 09 16:12:59 DMZ-Server systemd[1]: Started LSB: service and resource monitoring daemon. Feb 09 16:15:11 DMZ-Server systemd[1]: Stopping LSB: service and resource monitoring daemon... Feb 09 16:15:21 DMZ-Server monit[23315]: Stopping daemon monitor: monit failed! Feb 09 16:15:21 DMZ-Server systemd[1]: monit.service: control process exited, code=exited status=1 Feb 09 16:15:21 DMZ-Server systemd[1]: Stopped LSB: service and resource monitoring daemon. Feb 09 16:15:21 DMZ-Server systemd[1]: Unit monit.service entered failed state. Feb 09 16:19:31 DMZ-Server systemd[1]: Stopped LSB: service and resource monitoring daemon. address@hidden:/etc/monit/conf.d# ps aux | grep monit root 1269 0.0 0.1 15100 4652 ? D 13:55 0:01 /usr/bin/monit -c /etc/monit/monitrc root 23525 0.0 0.0 4568 1980 pts/2 S+ 16:19 0:00 grep monit address@hidden:/etc/monit/conf.d# kill -9 1269 address@hidden:/etc/monit/conf.d# ps aux | grep monit root 1269 0.0 0.1 15100 4652 ? D 13:55 0:01 /usr/bin/monit -c /etc/monit/monitrc root 23529 0.0 0.0 4568 2008 pts/2 S+ 16:19 0:00 grep monit address@hidden:/etc/monit/conf.d# kill -KILL 1269 address@hidden:/etc/monit/conf.d# ps aux | grep monit root 1269 0.0 0.1 15100 4652 ? D 13:55 0:01 /usr/bin/monit -c /etc/monit/monitrc root 23662 0.0 0.0 4568 2020 pts/2 S+ 16:21 0:00 grep monit -- View this message in context: http://nongnu.13855.n7.nabble.com/Unable-to-stop-monit-tp208452.html Sent from the monit-general mailing list archive at Nabble.com. -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general -- Paul Theodoropoulos www.anastrophe.com |
[Prev in Thread] | Current Thread | [Next in Thread] |