Page 1 of 2

H/W plugin not working

Posted: Tue Nov 20, 2018 11:02 am
by progressive.nagiosXI
HI TEam,

We are trying to use below 2 plugin but unable to use as they are giving some dependency error, we have just downloaded the plugin and trying to execute the same, is there anything else we need to do to achieve the same.

https://exchange.nagios.org/directory/P ... rs/details

https://exchange.nagios.org/directory/P ... th/details

Re: H/W plugin not working

Posted: Tue Nov 20, 2018 11:24 am
by lmiltchev
When I tried viewing the first plugin's usage, I saw the following error:

Code: Select all

Can't locate Monitoring/Plugin.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_msa_hardware.pl line 39.
BEGIN failed--compilation aborted at ./check_msa_hardware.pl line 39.
Is this what you were seeing?
You could fix that by opening the plugin in a text editor, and changing line 39 from this:

Code: Select all

use Monitoring::Plugin qw(%ERRORS);
to this:

Code: Select all

use Nagios::Monitoring::Plugin qw(%ERRORS);
I haven't tried the second plugin but I am pretty sure the same "fix" can be applied to it as well.

Let us know if this helped.

Re: H/W plugin not working

Posted: Tue Nov 20, 2018 12:03 pm
by progressive.nagiosXI
hi team getting below error on this line

[root@monitoring-nagiosxi libexec]# ./check_msa_hardware.pl
Can't locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_msa_hardware.pl line 32.
BEGIN failed--compilation aborted at ./check_msa_hardware.pl line 32.

tried to do the smae online 32 but didnot help.

for second plugin getting some other error


[root@monitoring-nagiosxi libexec]# ./check_tl_health
Can't locate Module/Load.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_tl_health line 2746.
BEGIN failed--compilation aborted at ./check_tl_health line 2746.

Re: H/W plugin not working

Posted: Tue Nov 20, 2018 12:27 pm
by lmiltchev
Try installing the missing perl modules by running:

Code: Select all

yum install perl-Switch perl-Module-Load -y

Re: H/W plugin not working

Posted: Tue Nov 20, 2018 1:14 pm
by progressive.nagiosXI
hi team,

still getting error in check_msa_hardware.pl plugins
PFB error

Can't locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_msa_hardware.pl line 32.
BEGIN failed--compilation aborted at ./check_msa_hardware.pl line 32.

Re: H/W plugin not working

Posted: Tue Nov 20, 2018 1:28 pm
by lmiltchev
Hmm, I am not sure why you are still getting "Can't locate Switch.pm in @INC"... The Switch perl module should've been installed via the yum command you ran earlier.

Try installing it via cpan by running:

Code: Select all

cpan install Switch
and verify the version number that is installed:

Code: Select all

perl -MSwitch -le 'print $Switch::VERSION'

Re: H/W plugin not working

Posted: Wed Nov 21, 2018 6:08 am
by progressive.nagiosXI
thank for your feedback.

now when i using ./check_tl_health plugins for tape library we are getting only up time & hardware health status which is only in ok form but we need more details as per plugins like


cpu-load (Check the CPU load of the device)
memory-usage (Check the memory usage of the device)
interface-usage (Check the utilization of interfaces)
interface-errors (Check the error-rate of interfaces (errors+discards per sec))
interface-status (Check the status of interfaces)
list-interfaces (Show the interfaces of the device and update the name cache)
list-interfaces-detail (Show the interfaces of the device and some details)
interface-availability (Show the availability (oper != up) of interfaces)
link-aggregation-availability (Check the percentage of up interfaces in a link aggregation)
create-shinken-service (Create a Shinken service definition)
ha-role (Check the role in a ha group)
check-licenses (Check the installed licences/keys)

so need your intervene.

Re: H/W plugin not working

Posted: Wed Nov 21, 2018 9:32 am
by lmiltchev
Unfortunately, this is a 3rd party plugin. We are not familiar with it, and we cannot test it in-house. There is one thing that is worth mentioning though - the author of the plugin says on the top of the page that not all of the devices will be recognized. It seems like that for some devices only "uptime" and "hardware-health" would be available. This is what I could understand from author's notes anyway, reading them in "Google Translate". :)

https://labs.consol.de/nagios/check_tl_ ... index.html

I would recommend that you contact the plugin's author for further assistance.

Re: H/W plugin not working

Posted: Wed Nov 21, 2018 10:20 am
by progressive.nagiosXI
thanks for feedback.

i have another issue in polycom plugins actually i could not found any plugins of polycom device so please share any link for this.

basially we want to monitor video health of polycom devices so please share any plugins for polycom devices.

Re: H/W plugin not working

Posted: Wed Nov 21, 2018 10:47 am
by lmiltchev
Searching for "polycon" on the Nagios Exchange produces only two results - https://exchange.nagios.org/index.php?o ... rd=polycom. I doubt any of these will be useful to you, so you may need to search for a suitable plugin from Polycom or write your own.

https://nagios-plugins.org/doc/guidelines.html