Hi -
> I have a central pmlogger server.
>
> On a normal host, I need to detect if the host is being logged by the
> remote pmlogger, and if not send a message to the remote logger to start
> logging me.
This is not quite but close to the scenario supported by the pmcd
avahi-announcement & pmmgr discovery machinery: where pmcd's come and
go at the local network; a central server runs pmmgr to periodically
look for pmcd's to attach pmlogger and/or pmie's to. pmmgr can find
hosts based upon direct listing of host-names / IP addresses, or avahi
mdns, and will soon grow active network-scanning.
The only missing bit there is for a pmcd host to announce its
existence actively, but through some means other than avahi (for sites
where avahi is not installed or applicable). I've been thinking about
a DNS- or IP-multicast-based method to do that. Or add SLP to the mix.
But anyway, you might find pmmgr (esp. the version coming out in
3.9.0) may do the job for you, without any extra scripting; and future
versions should do it with even less configuration.
> I am assuming that pmcd knows it's clients, and was hoping that it
> can tell me.
(pmcd can only tell you what its clients told it, which may not be
accurate/useful.)
- FChE
|