Re: adapting perl check_snmp_load script for CentOS environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux