Running check_aruba command from the command line

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdobbsmacu
Posts: 36
Joined: Tue Apr 28, 2015 3:11 pm

Running check_aruba command from the command line

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Running check_aruba command from the command line

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
rdobbsmacu
Posts: 36
Joined: Tue Apr 28, 2015 3:11 pm

Re: Running check_aruba command from the command line

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Running check_aruba command from the command line

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked