Mount Point Monitoring --Base class package "Class::Accessor
Posted: Wed Apr 08, 2020 10:10 am
I have downloaded the Script check_mountpoint.pl
But when i run the command:
sudo ./check_mountpoint.pl -m /test-mount
It is giving the following error:
==================================================================================
Base class package "Class::Accessor" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available 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 /usr/local/share/perl5/Nagios/Plugin/Getopt.pm line 13.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Nagios/Plugin/Getopt.pm line 13.
Compilation failed in require at ./check_mountpoint.pl line 15.
BEGIN failed--compilation aborted at ./check_mountpoint.pl line 15.
====================================================================================
Can anyone guide me here how to remove the above error?
But when i run the command:
sudo ./check_mountpoint.pl -m /test-mount
It is giving the following error:
==================================================================================
Base class package "Class::Accessor" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available 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 /usr/local/share/perl5/Nagios/Plugin/Getopt.pm line 13.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Nagios/Plugin/Getopt.pm line 13.
Compilation failed in require at ./check_mountpoint.pl line 15.
BEGIN failed--compilation aborted at ./check_mountpoint.pl line 15.
====================================================================================
Can anyone guide me here how to remove the above error?