[ILUG] tip of the day
colmmacc at Redbrick.DCU.IE
Sat Dec 21 14:02:03 GMT 2002
On Sat, Dec 21, 2002 at 01:36:16PM +0000, Paul Jakma wrote:
> On Fri, 20 Dec 2002, Colm MacCarthaigh wrote:
> > How are you checking the disk space on remote machines ? The only
> > nice way I could think of doing it was creating an unencrypted ssh
> > key which limited what could be run to one script, e.g:
> > no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="~/bin/stats"
> > <rest of ssh public key>
> > and giving a netsaint plugin access to the private key. Havnt gotten
> > around to doing it, would be intresting if there's a better, secure way ?
> enable snmp and use netsaints snmp_disk checker?
That's what I'm trying to avoid. It's an extra service without any
justification, it's UDP, it's SNMP. All bad as far as I'm concerned.
Looking at all the solutions I can find, which are sndmp_disk/check_snmp,
netsaint_statd and check_overcr they all look crap :(
I think the ssh key option is probably looking best, despite the
overhead of forking an ssh session (the hosts in question arnt
exactly short of CPU/RAM anyways). And we can use dpsyco to package
the adding of an account , ssh public key (restricted to running
one script) and the actual stats script (owned as root).
Just interested to see if anyone had found a nice way of monitoring
hosts remotely :)
colmmacc at redbrick.dcu.ie PubKey: colmmacc+pgp at redbrick.dcu.ie
More information about the ILUG