Problems running check_memory.pl with missing Groundworks/Nagios

This is the error I’m getting

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: