Skip to content

Tag: centos

Building a Ruby RPM for armv7hl

We’ve recently decided to supplement the temperature monitoring provided by the UPS units in our IDFs with Raspberry Pis and DHT22s. There’s a nice article on setting them up to pipe data into Zabbix, the monitoring system we use at work, so this is incredibly useful to us.

We use CentOS here, so converting from Raspbian to CentOS wasn’t too tricky, although the Zabbix agent is only available in the un-official, un-QAed armv7hl EPEL repository. Again, nothing too tough here. Not something I’d want on a critical system, perhaps, but if the agent stops working, at least we’ll get alerts. 😉

The problem arose when I went to install Puppet, which we use for long-term configuration maintenance. It turns out that the CentOS 7 OS repository for armv7hl doesn’t include Ruby, which Puppet requires. Now, I’m currently trying to rebuild a Ruby 2.3 RPM on the Raspberry Pi so that I can get Puppet installed. Will post updates here (including a link to the RPM) once I get it figured out.

Installing NRPE on CentOS

When it comes to Linux, I’m a Debian guy. I’m quite at home using apt-get and the Debian file structure. However, I’ve been trying to hone my CentOS chops, as CentOS and RHEL are big in the enterprise environment. So, I added a CentOS 6 server to my network.

Now, every “always on” device on my network is monitored by Nagios. My Nagios server is currently running on openSUSE 12, which makes some of the configurations interesting, but seems to be the most functional post-install.

Using this guide in the Ubuntu Server documentation, I was able to quickly get my Debian servers fully monitored (at least, as monitored as I want them). However, CentOS isn’t as easy.

The guide over at Server World gets you part of the way there, but won’t actually let you check anything. It turns out that you’ll also need to run a yum -y --enablerepo=epel install nagios-plugins-all in order to really monitor any status. Of course, if you just need a check or two, you can always install just the individual plugins.