Configuring Icinga for Cisco SNMP

Original Error: “CRITICAL – Plugin timed out while executing system call”

I had a bit of trouble getting this to work so I thought I would share my solution. I initially followed the tutorial here. I basically wanted to Icinga to receive SNMP data from a Cisco 7200 I had set up.

To begin, set up your Cisco router according to this tutorial.

You can then begin setting up your monitoring services according to the tutorial I listed above.

Here’s where it differs. I found that the line:

check_command check_snmp!-C public -o sysUpTime.0

did not work. I discovered you can test the plugins manually by migrating to your plugin directory and doing something like the following:

/usr/lib/nagios/plugins/check_snmp <COMMAND ARGUMENTS HERE>

In this way, if you want to try something new, you can run it manually first to see if it works.

I could not get a named identifier to work with the command so I ended up using the following in my config for Icinga:

check_command     check_snmp!-H <IP_ADDRESS_of_TARGET_HOST> -P 2c -C <COMMUNITY_STRING_HERE> -o .

The numbers at the end are the OID tree value corresponding to sysUpTime. You can view the tree here. You may notice there is an additional 0 at the end. This is the index number.


2 thoughts on “Configuring Icinga for Cisco SNMP

  1. Reply


    Helped a lot, thanks!

  2. Reply


    18 months later I stumbled across this post and it saved me! Spent over a day on trying to resolve this so thank you.

Leave a Reply