Rogelio
2008-Feb-05 05:17 UTC
[CentOS] adapting perl check_snmp_load script for CentOS environment
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 at 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 at nagios03 plugins]# -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080204/2f33f408/attachment-0001.html>
John R Pierce
2008-Feb-05 06:18 UTC
[CentOS] adapting perl check_snmp_load script for CentOS environment
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 at 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 at 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.