So, you are thinking about or decided to use Nagios to monitor your server. Nagios also provides a plugin, NRPE, to permit remote monitoring. But how can you use Nagios to monitor your Drupal installation?
Nagios provides examples for monitoring various system stats. The check_users command is provided by Nagios as a plugin (nagios-plugins-1.4.15 and nrpe-2.12 -- start your search in /usr/local/nagios/etc). If you are logged into the remote system, you could just execute it from a shell command line:

