Script for load monitoring via nagios.

Load monitoring via nagios

please ensure nagios plugins and nrpe services are configured on remote host.


/usr/local/nagios/libexec/check_nrpe -H remote host ip -c check_load > load.txt

x=$(awk -F’:’ ‘{ print $2 }’ load.txt | awk -F’,’ ‘{ print $1 }’|awk -F’.’ ‘{ print $1 }’)

#echo $x

if [ $x -ge 10 ]; then

/bin/mail -s ” Load Greater than 10″ email < load.txt



Magento: The PDO extension is required for this adapter but the extension is not loaded

1 } First check pdo and mysqli modules are present in your server. If not please recompile your php with pdo and mysqli modules using easy apache.

2 } If this issue still persist please do following things .

a] move to the directory “shell” inside your magento installation.

b] php -f compiler.php compile