A Daemon Monitor Plugin is like a monitor. However a dmonitor is always running. Like a monitor a dmonitor returns it's report via standard out put. Unlike a monitor a dmonitor has to spit out it's report on demand.
The report format used by a dmonitor is identical to the report format of a normal monitor. Note that the closing line (DONE) is a *must* Esmd waits untill that line before it considers the report done. Otherwise it will timeout and report an error.
A dmonitor must be constantly reading standard input for the word STAT When a dmonitor gets STAT it should make it's report and send it via standard output.
If a dmonitor wants esmd to get the reports from the dmonitors
immediately it should send esmd a SIGUSR1 signal. The pid of esmd can
be found in /var/run/esmd.pid
Index