H/W plugin not working
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
H/W plugin not working
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
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
When I tried viewing the first plugin's usage, I saw the following error:
Is this what you were seeing?
You could fix that by opening the plugin in a text editor, and changing line 39 from this:
to this:
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.
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.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);Code: Select all
use Nagios::Monitoring::Plugin qw(%ERRORS);Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: H/W plugin not working
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.
[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
Try installing the missing perl modules by running:
Code: Select all
yum install perl-Switch perl-Module-Load -yBe sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: H/W plugin not working
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.
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
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:
and verify the version number that is installed:
Try installing it via cpan by running:
Code: Select all
cpan install SwitchCode: Select all
perl -MSwitch -le 'print $Switch::VERSION'Be sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: H/W plugin not working
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.
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
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.
https://labs.consol.de/nagios/check_tl_ ... index.html
I would recommend that you contact the plugin's author for further assistance.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: H/W plugin not working
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.
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
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
https://nagios-plugins.org/doc/guidelines.html
Be sure to check out our Knowledgebase for helpful articles and solutions!