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.
Running check_aruba command from the command line
-
rdobbsmacu
- Posts: 36
- Joined: Tue Apr 28, 2015 3:11 pm
Re: Running check_aruba command from the command line
The plugin appears to be a perl script - what happens if you run the following?
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.
Code: Select all
perl check_aruba -hI am under the impression that the community file needs to contain your SNMP community string.
-
rdobbsmacu
- Posts: 36
- Joined: Tue Apr 28, 2015 3:11 pm
Re: Running check_aruba command from the command line
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.
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
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