How long did you wait? It takes a bit (10 minutes or more) for changes in client-local.cfg to propagate to the clients (they have to detect the change, and then pull it in, then act on it, and this takes a couple of poll cycles).
And, of course, you must have a working agent on the remote machine. The Hobbit server can run network tests (pings, http, etc.) but it requires remote agents in order to perform many of the client tests (CPU, memory, disk, file, messages, ports, etc.)
GLH
From: Scott Mohnkern [mailto:mohnkern at gmail.com]
Sent: Wednesday, October 31, 2007 3:00 PM
To: hobbit at hswn.dk
Subject: [hobbit] New to Hobbit --- file monitoring
I'm relatively new to Hobbit, but I'm learning quickly. I'm in
a mixed OS environment, with one Linux server, one linux notebook, 2 windows machines, a network printer and a VOIP box. I've managed to get the bb-hosts file so it monitors all the equipment, and I've got the ports set so it's checking ports on the server.
What I'd like to do is do file checking, starting with just to
see if a file exists.
I added the following to /etc/hobbit/hobbit-clients.cfg
FILE "/etc/passwd" GREEN NOEXIST TRACK
Just to have it check to see if /etc/passwd existed. (I may
have this reversed, but more on that later).
Restarting hobbit, and it still showed "no files being checked"
So I added the following to /etc/hobbit//client- local.cfg
file:/etc/passwd
Restarted Hobbit, still nothing.
I'm clearly missing a piece to the puzzle. There's also a
directory /usr/lib/hobbit but I can't imagine any configure files go there.
If it helps, I'm running Ubuntu 7.10.
So if I want to monitor for file existence, on the server, where
(and what) do I plug in?