I'm trying to use some perl scripts on a CentOS box (Nagios03) that were previously working on a Gentoo (Nagios01) box.
Any ideas on what I might to do try to resolve this?
WORKS ON GENTOO
nagios01 new # ./check_snmp_load.pl -H myserver.mydomain.comhttp://ha-vpn-internal.clacorp.com -C myPublicString -w 50,50,50 -c 75,75,75 -T nsc -t 15 -f CPU : 3 3 3 : OK | cpu_5_sec=3%;50;75,cpu_1_min=3%;50;75,cpu_5_min=3%;50;75 nagios01 new #
DOES NOT WORK ON CENTOS
[root@nagios03 plugins]# ./check_snmp_load.pl -H myserver.mydomain.comhttp://ha-vpn-internal.clacorp.com/ -C myPublicString -w 50,50,50 -c 75,75,75 -T nsc -t 15 -f Unknown option: T Multiple warning without -L or -I switch Usage: ./check_snmp_load.pl [-v] -H <host> -C <snmp_community> | (-l login -x passwd) [-p <port>] -w <warn level> -c <crit level> [-L|-A|-I|N] [-f] [-t <timeout>] [-V] [root@nagios03 plugins]#
Rogelio wrote:
I'm trying to use some perl scripts on a CentOS box (Nagios03) that were previously working on a Gentoo (Nagios01) box.
Any ideas on what I might to do try to resolve this?
WORKS ON GENTOO
nagios01 new # ./check_snmp_load.pl -H myserver.mydomain.com http://ha-vpn-internal.clacorp.com -C myPublicString -w 50,50,50 -c 75,75,75 -T nsc -t 15 -f CPU : 3 3 3 : OK | cpu_5_sec=3%;50;75,cpu_1_min=3%;50;75,cpu_5_min=3%;50;75 nagios01 new #
DOES NOT WORK ON CENTOS
[root@nagios03 plugins]# ./check_snmp_load.pl -H myserver.mydomain.com http://ha-vpn-internal.clacorp.com/ -C myPublicString -w 50,50,50 -c 75,75,75 -T nsc -t 15 -f Unknown option: T Multiple warning without -L or -I switch Usage: ./check_snmp_load.pl [-v] -H <host> -C <snmp_community> | (-l login -x passwd) [-p <port>] -w <warn level> -c <crit level> [-L|-A|-I|N] [-f] [-t <timeout>] [-V] [root@nagios03 plugins]#
the error message is telling you that ./check_snmp_load.pl doesn't have a -T option anymore. I'd guess thats a Nagios script, so I'd guess something has changed in its arguments betweeen version 01 and version 03. CentOS has nothing to do with it.
On Feb 4, 2008 10:18 PM, John R Pierce pierce@hogranch.com wrote:
the error message is telling you that ./check_snmp_load.pl doesn't have a -T option anymore. I'd guess thats a Nagios script, so I'd guess something has changed in its arguments betweeen version 01 and version 03. CentOS has nothing to do with it.
Actually, it turned out to be a problem ultimately was with the perl script. It was named the same as the old box, but was different. I put on the new script, and it was good.
(On a side note, things SNMP-related magically started working when I pulled over the contents of the /etc/snmp folder from the old box. All of those MIB-OID associations weren't there without that index, I guess)
Thanks John. I appreciate your time responding to my problem.