[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] ActiveMonitor/Qube3.



How do I add something to ActiveMonitor with a Qube3?

How, as an example, would I test that the default gateway was using eth1,
not eth0 ? (Perhaps with an severe error being that there is no gateway).
Or test that a certain piece of hardware was detected?
(perhaps using simple logic like grep <HARDWARE_ID> /proc/pci || echo "Not
found" )

I imagine there is somewhere were you simply add a test-condition, and
expected values for 'normal', 'warning', and 'error'; and this adds the
entry to Active Monitor -> Status (
/usr/sausalito/ui/menu/base/am/amStatus.php ), the cron job checks, and thus
warning emails sent to the administrator.

Also, assuming, say an error occured, can you trigger a bash script or
something (eg, if CCE finds Apache is down, I think it tries to run it and
get it going again?).

Siggy