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:
root@DMZ-Server:/etc/monit/conf.d# monit quit
Monit daemon with pid [1269] killed
root@DMZ-Server:/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
root@DMZ-Server:/etc/monit/conf.d# service monit stop
root@DMZ-Server:/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.
root@DMZ-Server:/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
root@DMZ-Server:/etc/monit/conf.d# kill -9 1269
root@DMZ-Server:/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
root@DMZ-Server:/etc/monit/conf.d# kill -KILL 1269
root@DMZ-Server:/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
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general