Wednesday, December 02, 2015

Monit & Ruby: What a (Environment) Hell!!

These last couple of days I've been dealing with Monit and a Linux box running a bunch of Ruby stuff...
What a freakin' fucking nightmare is to setup Monit to start those damn processes, by Jeebus!
It took me a lot of fumblin' and testing to get those fuckers up & running thru Monit.
The whole thing remind me of those halcyon days of setting up Oracle on a Red Hat 6.2 box, the only difference was that getting Oracle installed and running on those boxes was a pain, and getting this hipster crap is a piece of cake, the hard part was getting it to start using a different user.


Labels: , , , , ,

Friday, November 20, 2015

Monit: Apache returns "Execution Failed" status

Got a gig to administer a couple of servers on the Google Cloud Platform the other day.
So I got a few Ubuntu Servers 14.04 up & running and installed all the crap I usually need/ run on the boxes I get my hands on...

Now, after setting up Monit a bit, and starting it up, I've noticed that the Apache process was in problems.
No matter what I did, I got the same status... In the end, the problem was really, really stupid to fix...

Check the path to the pid file on the /etc/monit/conf.d/apache2 file:
Change the pid from /var/run/apache2.pid to /var/run/apache2/apache2.pid and restart the Monit service.
Of course, you already have copied the file /etc/monit/monitrc.d/apache2 to /etc/monit/conf.d/apache2, right?

Labels: , , , , , , , ,