Monitoring AKCP Sensors with Nagios

Monitoring your IT equipment is not only about checking the internals of them. Also you have to be aware of the environment around the component: temperature, humidity or water.
My company has been using AKCP sensors for a long time now. They are doing a great job and have everything on board you need: A webinterface aswell as email notification and graphs with the historical data of every sensor.

However, we had the wish to integrate the AKCP sensors into our Nagios monitoring system. Since I am still kind of a nagios newbie, I was afraid of doing that. Surprisingly it turned out that it´s very easy to monitor AKCP sensors over Nagios:

I started off with looking around for a nagios plug-in that is capable of collecting the data from AKCP sensors. Lucky me, I found a plug-in specialized for that task on the Netways Website. They are really doing a great job in offering free plug-ins – the only thing you have to do is registering a free account at their website.

I downloaded the plug-in and moved it to the folder /omd/sites/<sitename>/lib/nagios/plugins. Don´t forget to make it runnable with the command chmod +x check_akcp_sensorprobe.pl! After that you are ready to make your first check. My checkcommand for Nagios looks like this:

define command { 
command_name   check_akcp
command_line       $USER1$/check_akcp_sensorprobe.pl -H $HOSTADDRESS$ -C $ARG1$
}

As you can see, there was no need to setup warning or critical levels because they were already configured in the AKCP device. The –C syntax is for setting the SNMP Community String, which has read access. After sending the command the AKCP device returns the status and values for all connected sensors.

The implementation is full running on OMD without any further configuration. As you can see in the screenshot, pnp4nagios displays the returned values with its default template.

Thanks to Netways, I had the AKCP sensors monitored with Nagios within 15 minutes!


Links:

Advertisements

About sitweak
Monitoring, Network, Firewall, Mobile Security. I´m totally into that stuff!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: