Quick Links

Workaround for Nagios check_linux_raid failure in RHEL / CentOS 6.2

I recently stumbled upon another Nagios plugin that no longer works with SELinux under RHEL / CentOS 6.2: check_linux_raid.

Just like the check_disk plugin, it has the nagios_checkdisk_plugin_exec_t SELinux type. As of May 2012, this problem has not yet been fixed.

The workaround is simple, as with the check_disk plugin:

chcon -t nagios_unconfined_plugin_exec_t /usr/lib64/nagios/plugins/check_linux_raid

Or, for 32-bit systems:

chcon -t nagios_unconfined_plugin_exec_t /usr/lib/nagios/plugins/check_linux_raid

Workaround for Nagios check_disk failure in RHEL / CentOS 6.2

After updating from EL 6.1 to 6.2, the Nagios “check_disk” plugin suddenly stopped working with “Permission denied” errors. This problem is related to the SElinux policy (you *are* running with SElinux enabled, aren’t you?).

By default, these AVC denials are not logged in /var/log/audit/audit.log which makes this problem harder to spot (if you want, you can enable all audit-messages by running semodule -DB).

There are at least two relevant entries in Bugzilla:

Bug 771245 – nagios-plugins-disk fails when checking /boot on RHEL6.2 boxes
Bug 768055 – SELinux silent denials of Nagios NRPE check of /boot

Fortunately, there is a simple workaround while we wait for an updated [...]

Continue reading Workaround for Nagios check_disk failure in RHEL / CentOS 6.2

Twagios 2.0 - Nagios notifications revisited

In a previous blog post, I described how to use Twitter for Nagios notifications – dubbing it “Twagios”.

A couple of months later, Twitter stopped supporting basic authentication (username/password). This meant that the old (simple) way of sending notifications stopped working. In this post, I’ll explain how I replaced the old Twagios with a new script – “Twagios 2.0″

First of all, a big thank you to Jeff Miller for writing this excellent post on using the Python tweepy library to create a simple command line client. I simply followed Jeff’s instructions…

Install the tweepy library
Create a new OAuth registration at [...]

Continue reading Twagios 2.0 – Nagios notifications revisited

RHCA Exams: Two down, three to go!

As an IT professional, I find that certification has become more important over the years. Maybe this has to do with the economic climate – prospective customers and employers are more likely to talk to you if you have a couple of certifications on your resume. In my opinion, certifications that are based on multiple-choice exams offer little value – they merely test your ability to remember factoids.

The Red Hat certification exams are performance-based, so you really need to know your stuff and be able to apply it under considerable time pressure. This is why Red Hat certifications are received [...]

Continue reading RHCA Exams: Two down, three to go!

Twagios - Use Twitter for Nagios notifications

Several customer sites use Nagios for monitoring and alerting. Nagios can send out notifications about problems in a variety of ways, for example using email, pager, SMS and even Twitter. I based my configuration on this post.

Configuring Twitter notifications takes a couple of steps:

Set up a new “Twitter Bot” account to be used for Nagios notifications.
Create a new Nagios contact to send out notifications for your hosts and services.
Define the appropriate notify-by-twitter and host-notify-by-twitter commands.

Setting up the Twitter Bot account

Go to twitter.com and create a new account for your Twitter Bot.
Go to Settings, and mark the updates as Private. Otherwise, [...]

Continue reading Twagios – Use Twitter for Nagios notifications