[xymon] monitoring listen local socket

Henrik Størner henrik at hswn.dk
Mon Feb 14 11:03:47 CET 2011


In <4D58ECDE.7030003 at schetterer.org> Robert Schetterer <robert at schetterer.org> writes:

>anyone an example with how to monitor
>a socket for exist and listen in hobbit-clients
>i.e
>/var/run/clamav/clamav-milter.ctl
>i am not sure with file statement and/or/nor ports

You could do it with a check in the Xymon client.
In client-local.cfg, add
  file:/var/run/clamav/clamav-milter.ctl
to have the client send information about this
(socket) file. Then in the analysis.cfg config
(hobbit-clients.cfg in older versions), add

   HOST=blabla
      FILE /var/run/clamav/clamav-milter.ctl type=socket COLOR=red

This should give you an alert if the file does not
exist, or it is not a socket-type file.


Regards,
Henrik




More information about the Xymon mailing list