Page 1 of 1

Running check_aruba command from the command line

Posted: Tue May 12, 2015 10:18 am
by rdobbsmacu
I'm trying to run the check_aruba plugin I got from http://udel.edu/~doke/nagios/check_aruba from the command line. when I try to run the command I get command not found.

I have cd to the libexec folder where the web interface uploads the plugins to. I have tried just typing in the name of the command and also ./check_aruba . I have also tried it both ways with -H IPADDRESS and HOSTNAME.

when I run try to tun the command with ./ in front of it and -H I get ./check_aruba: /usr/local/bin/perl: bad interpreter: no such file or directory.

Re: Running check_aruba command from the command line

Posted: Tue May 12, 2015 3:14 pm
by jolson
The plugin appears to be a perl script - what happens if you run the following?

Code: Select all

perl check_aruba -h
According to the source code, you will also need a community file to be created at /usr/local/nagios/etc/aruba_community.pw
I am under the impression that the community file needs to contain your SNMP community string.

Re: Running check_aruba command from the command line

Posted: Wed May 13, 2015 3:15 pm
by rdobbsmacu
That allowed the command to run by i'm now getting this why i run the command. any help

perl check_aruba -H 172.18.201.10 -C public
Can't use string ("16") as an ARRAY ref while "strict refs" in use at check_arub a line 235.

Re: Running check_aruba command from the command line

Posted: Wed May 13, 2015 3:19 pm
by jolson
Please verify that you pasted the source code properly. Also, check your perl version:

Code: Select all

[root@nagioscore ~]# perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi