is a perl script that will read svmon -G and vmstat -v output and print WARN,CRIT or FATAL message if memory or pg_space over WARN,CRIT or FATAL treshold.
NAME checkmem.pl - Check mem for AIX SYNOPSIS checkmem.pl [options] Options: -warn|w Sets warning treshold for mem. Default 70. -crit|c Sets critical treshold for mem. Default 90. -fatal|f Sets fatal treshold for mem. Default 95. -pgwarn|pgw Sets warning treshold for pg space. Default 70. -pgcrit|pgc Sets critical treshold for pg space. Default 90. -pgfatal|pgf Sets fatal treshold for pg space. Default 95. -unit|u Sets unit. Possible values are kmg. Default m. -color Print colored output. -info|i Print memory infos. -help brief help message -man full documentation OPTIONS -warn Sets warning treshold for mem. Default 70. -crit Sets critical treshold for mem. Default 90. -fatal Sets fatal treshold for mem. Default 95. -pgwarn Sets warning treshold for pg space. Default 70. -pgcrit Sets critical treshold for pg space. Default 90. -pgfatal Sets fatal treshold for pg space. Default 95. -unit Sets unit for conversion. Possible values are kmg. Default is m. -info Prints out information about memory usage. -color The output will be colored. -help Print a brief help message and exits. -man Prints the manual page and exits. DESCRIPTION checkmem.pl will read svmon -G and vmstat -v output and print WARN,CRIT or FATAL message if memory or pg_space over WARN,CRIT or FATAL treshold. Author : Miroslav Pilat <miroslav.pilat@gmail.com> VERSION 1.1