By kobazik on
Dear All,
Does anybody using Nagios for monitoring drupal deployments? Nagios already has check_http and check_curl plugins but I can only validate index.php. I was thinking about test tool called WebInject. It has a Nagios plugin http://www.webinject.org/plugin.html . You can create custom xml config files for different deployments and check if specific function of web application is working. Here my problem comes. How to login to drupal using WebInject and howto navigate on the website.
Any ideas are welcome.
Thanks in advance,
Dominik
Comments
Checking for drupal updates with Nagios and WebInject
Yeah, I was planning on looking at this in the next week or so. Unfortunately, I've fallen at the first hurdle.
I was planning on setting up a 'nagios' user that would be effectively the same as an anonymous user, but with access to the update_status module. It doesn't appear that drupal 5.x has access permissions defined for this module, which is a problem because I don't want to grant admin privileges to an account that's going to have its password stored in plaintext in my nagios scripts (even if it is behind a firewall on my local intranet).
I don't want to use the email notification, because that puts me in the same state as the RSS feeds currently do: I get an email while I'm in the middle of something else, so I ignore (and forget about) the notification.
Hmmm, I suppose I could have Nagios scan a defined IMAP mailbox for the notification email, and then flag a warning...
I prefer cacti
cacti works really nice and stable, for monitoring apache, mysql, memcached, unix/linux memory, disk, I/O, cpu load via snmpd.
Regards
Output a status page
I'm building a module that outputs to Nagios at the moment. I just output a status page in plain text and let the ops department do their magic with Nagios. Since the request comes from only one IP it should be easy enough to secure with an access callback.
http://www.rimian.com.au
http://www.freelancewebdeveloper.net.au
I use Drupal... and Nagios with WebInject
However, I haven't used Nagios w/ Webinject to check something in drupal. I use Nagios w/ Webinject to login and check a sequence of dynamically generated webcontent in our corporate systems. I believe I would be able to create a webinject that can check to see if your Drupal installation needs updates by checking for "Update available" in the content. Getting the info about WHICH update would be a bit trickier.
I would wonder if there's another way... perhaps use a Nagios MySQL check to pull the data via the Database instead.
@rimian
I would love to try out your module if you need a tester.
Nagios Using WebInject to Check Status Report
I've set this up successfully now in my Nagios environment checking my personal Drupal6.9 system.
Here is the webinject test I wrote:
I'll post more detailed setup with Nagios stuff on my page
http://www.techadre.com/?q=content/checking-drupal-status-nagios-and-web...