Following is complete error, while I was executing Nagios plugin,
Can't locate Sys/Statistics/Linux.pm in @INC (you may need to install the Sys::Statistics::Linux module) (@INC contains: /usr/lib/nagios/plugins /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/lib/nagios/plugins/check_linux_stats.pl line 35.
After searching on internet I found that a perl module called “libsys-statistics-linux-perl” and which is missing in my machine.
Since I am using Ubuntu 14.04, I installed libsys-statistics-linux-perl module with apt-get by using following command:
$ apt-get install libsys-statistics-linux-perl
Can't locate Sys/Statistics/Linux.pm in @INC (you may need to install the Sys::Statistics::Linux module) (@INC contains: /usr/lib/nagios/plugins /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/lib/nagios/plugins/check_linux_stats.pl line 35.
After searching on internet I found that a perl module called “libsys-statistics-linux-perl” and which is missing in my machine.
Since I am using Ubuntu 14.04, I installed libsys-statistics-linux-perl module with apt-get by using following command:
$ apt-get install libsys-statistics-linux-perl
No comments:
Post a Comment