Linux Enterprise Cluster: Build a Highly Available Cluster with Commodity Hardware and Free Software

Using this method, you will only be able to send one line of an error message;[6] however, a single script can return a different line of output each time it runs, and Mon will report it each time (because Mon will consider each change in output a new alert).

Here are a few things that you might want to monitor with your custom monitoring scripts:

Note 

You can write a script that calls another script, but just be sure to pass the exit status of the child script back as the exit status of the main script or SNMPD will not see it.

[6]See the SNMP traps and sending SNMP trap alerts sections in the SNMP and Mon documentation if you need to send more than one-line error messages in your SNMP messages.

[7]The first time you run this script you'll see an error that you can ignore because the historical page faults information doesn't exist.

[8]Defunct processes are shown on a ps report and usually cannot be removed from the system without rebooting.

Категории