[CentOS] adapting perl check_snmp_load script for CentOS environment

John R Pierce pierce at hogranch.com
Tue Feb 5 06:18:05 UTC 2008


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.





More information about the CentOS mailing list