snmp_ups_capa


#1

Has anyone used snmp_ups_capa
If yes can you please tell me what i can put in my checkcommands.cfg file

Here is what i have in my checkcommands.cfg
define command{
command_name snmp_ups_capa
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l ‘Adv. Battery Capacity’ -u ‘%’
}

and this is my command.cfg file,
command[snmp_ups_capa]=/usr/local/nagios/libexec/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l ‘Adv. Battery Capacity’ -u ‘%’


#2

That’s like me asking "has anyone used “check_jakkedup_script”? I doubt it. But I’ll bet many of us use check_snmp, if that is what you are asking.
It looks like what you have in your checkcommands.cfg is just fine.
What’s wrong with it?
Is this some nrpe setup or something? what is this from/for?
and this is my command.cfg file,
command[snmp_ups_capa]=/usr/local/nagios/libexec/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l ‘Adv. Battery Capacity’ -u ‘%’