Can't locate Nagios/Plugin.pm in @INC ...
Looks like the script can't find the Plugin module form Nagios for Perl so we have to install this using this command (as root):
# perl -MCPAN -e 'install Nagios::Plugin' (as root)
Update: If this command fails try to delete ~/.cpan directory and retry the command
Now you should be able to login as the nagios user and run the check_memory.pl command...
$ ./check_mem.pl
CHECK_MEM OK - 4664M free | free=4890664960b;;
BAM!!
Here is the link for the check_memory.pl script
No comments:
Post a Comment