#!/usr/bin/perl # Pandora FMS Plugin to get memory information on Linux # (c) 2014 Sancho Lerena \n"; print "FreeMemory\n"; print "generic_data\n"; print "Free memory %. Note most linux use 99% of available memory by default, check Availablememory module for more accurate information on available physical memory on system\n"; print "%\n"; print "0\n"; print "2\n"; print "$FREEP\n"; print "\n"; print "\n"; print "FreeSwap\n"; print "generic_data\n"; print "Free Swap %\n"; print "%\n"; print "0\n"; print "5\n"; print "$SFREE\n"; print "\n"; print "\n"; print "AvailableMemory\n"; print "generic_data\n"; print "Available Physical Memory % (Free+Cached+CachedSwap)\n"; print "%\n"; print "0\n"; print "10\n"; print "$available_percent\n"; print "\n";