Random Project

Doesn’t seem to work

1: Can’t download the file; had to copy from browser and past it in vi
2: not enough instruction how to set it up and what it needs to run
3: no instructions on how to run it and pass parameters to it.
4: Doesn’t which perl version it needs
I tried to run it and I got following line
I do have perl installed
nagios@wlnagios:~> which perl
/usr/bin/perl
nagios@wlnagios:~>

nagios@wlnagios:~> ./check_cpu.pl
Can’t locate Getopt/Compact.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at ./check_cpu.pl line 5.
BEGIN failed–compilation aborted at ./check_cpu.pl line 5.