check_snmp_cisco_memfree

Hello,

I am using Naios and have installed a plugin to check memory of a Cisco router. I can get the check to work when I run it on the command line as shown:

check_snmp_cisco_memfree -w 70 -c 60 -h xxx.x.xxx.xx -s xxxxx

this will return:

MEM OK [74% free (45538k of 181338k in use)]

so I know the plugin works, it connects to the router and polls the info.

My problem is when I integrate it into Naios I get a “SNMP Error” under the status info of that device. Does any one know what would cause that? I have been playing around with the defining the command and service in different ways. This is how I have it now:

check_snmp_cisco_memfree

define command{
command_name check_snmp_cisco_memfree
command_line /usr/local/nagios/libexec/check_snmp_cisco_memfree -w $ARG1$ -c $ARG2$ -h $ARG3$ -s $ARG4$
}

define service{
use generic-service
host_name gatekeeper1
service_description Memory
check_command check_snmp_cisco_memfree!70!60!xx.xxx.xxx.xx!xxxxx
}

Any help would be appreciated. Note the x’s are not really x’s