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?
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?
25 minutes and counting.
I'm actually trying to monitor on the server. (So machine X is where the hobbit server is running and machine X has the file I'm trying to monitor).
Scott
On 10/31/07, Hubbard, Greg L <greg.hubbard at eds.com> wrote:
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?
On Wednesday 31 October 2007, Hubbard, Greg L wrote:
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). I tried to set up file monitoring today and after 1hr, I fixed it by restarting the hobbit server. Not reloading, restarting. So, restart your hobbit server after you changed the config files and the change is not detected.
You can also take a look in the tmp directory of the client. There should be a logfetch file if the client picks up the new configuration. There should be 2 files, one with the settings on the hobbit server and one with the status (this is a file used by the hobbit client to track the logfile).
Stef
This may be where I'm getting confused. On the machine where hobbit is reporting data, (i.e. the machinename I use for the url) does the client need to be running? Where are the config files for the client typically stored? I've been editing files /etc/hobbit But I wonder if those are just the server files, and not the client files (assuming the client needs to be running as well on the machine that is the server.
Scott
On 10/31/07, Stef Coene <stef.coene at docum.org> wrote:
On Wednesday 31 October 2007, Hubbard, Greg L wrote:
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). I tried to set up file monitoring today and after 1hr, I fixed it by restarting the hobbit server. Not reloading, restarting. So, restart your hobbit server after you changed the config files and the change is not detected.
You can also take a look in the tmp directory of the client. There should be a logfetch file if the client picks up the new configuration. There should be 2 files, one with the settings on the hobbit server and one with the status (this is a file used by the hobbit client to track the logfile).
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wednesday 31 October 2007, Scott Mohnkern wrote:
This may be where I'm getting confused. On the machine where hobbit is reporting data, (i.e. the machinename I use for the url) does the client need to be running? Where are the config files for the client typically stored? I've been editing files /etc/hobbit But I wonder if those are just the server files, and not the client files (assuming the client needs to be running as well on the machine that is the server. I'm afraid you need some more reading ;) Hobbit is client server. So there is a server that receives info from the client. The server is also doing netwerk tests. The cient sends information to the server that's interpreted by the server.
The servers creates the koloms, trends, ... and does all the logic.
For file monitoring you need to configure the server so the next time the client connects to the server to send the information, the client also receives the files it needs the to monitor. The next time the client sends all information to the server including the monitord files.
So on the server you typically needs the client software so you can monitor the machine that runs the server server software. Depending on your setup, the server can include the client or this can be a seperate package.
Stef
~/hobbit/client/* is where the client stuff lives. The server runs a local client. On remote systems, you usually clone the ~/hobbit/client/* part to other machines (assuming the same architecture). As you get more into it, you will figure out how to make client distributions.
If you are seeing anything reported for CPU, memory, disk, etc. on your server, then the client is running. You don't have to do anything to enable it.
From: Scott Mohnkern [mailto:mohnkern at gmail.com]
Sent: Wednesday, October 31, 2007 3:52 PM
To: hobbit at hswn.dk
Subject: Re: [hobbit] New to Hobbit --- file monitoring
This may be where I'm getting confused. On the machine where
hobbit is reporting data, (i.e. the machinename I use for the url) does the client need to be running? Where are the config files for the client typically stored? I've been editing files /etc/hobbit But I wonder if those are just the server files, and not the client files (assuming the client needs to be running as well on the machine that is the server.
Scott
On 10/31/07, Stef Coene <stef.coene at docum.org> wrote:
On Wednesday 31 October 2007, Hubbard, Greg L wrote:
> 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). I tried to set up file monitoring today and after 1hr, I fixed it by restarting the hobbit server. Not reloading, restarting. So, restart your hobbit server after you changed the config files and the change is not detected. You can also take a look in the tmp directory of the client. There should be a logfetch file if the client picks up the new configuration. There should be 2 files, one with the settings on the hobbit server and one with the status (this is a file used by the hobbit client to track the logfile). Stef To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Thanks, this was the critical piece of information I was missing. There are client configuration files in /etc/hobbit that I was editing, and clearly they aren't the correct ones. I need to edit the ones in /usr/lib/hobbit/client.
Back to editing what I hope is the correct config file. I should be able to put
FILE "/etc/passwd" GREEN NOEXIST TRACK in ~/usr/lib/hobbit/client/etc/hobbit-clients.cfg
and then start the hobbit client with /usr/lib/hobbit/runclient.sh start
and get reporting, yes?
On 10/31/07, Hubbard, Greg L <greg.hubbard at eds.com> wrote:
~/hobbit/client/* is where the client stuff lives. The server runs a local client. On remote systems, you usually clone the ~/hobbit/client/* part to other machines (assuming the same architecture). As you get more into it, you will figure out how to make client distributions.
If you are seeing anything reported for CPU, memory, disk, etc. on your server, then the client is running. You don't have to do anything to enable it.
*From:* Scott Mohnkern [mailto:mohnkern at gmail.com] *Sent:* Wednesday, October 31, 2007 3:52 PM *To:* hobbit at hswn.dk *Subject:* Re: [hobbit] New to Hobbit --- file monitoring
This may be where I'm getting confused. On the machine where hobbit is reporting data, (i.e. the machinename I use for the url) does the client need to be running? Where are the config files for the client typically stored? I've been editing files /etc/hobbit But I wonder if those are just the server files, and not the client files (assuming the client needs to be running as well on the machine that is the server.
Scott
On 10/31/07, Stef Coene <stef.coene at docum.org> wrote:
On Wednesday 31 October 2007, Hubbard, Greg L wrote:
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). I tried to set up file monitoring today and after 1hr, I fixed it by restarting the hobbit server. Not reloading, restarting. So, restart your hobbit server after you changed the config files and the change is not detected.
You can also take a look in the tmp directory of the client. There should be a logfetch file if the client picks up the new configuration. There should be 2 files, one with the settings on the hobbit server and one with the status (this is a file used by the hobbit client to track the logfile).
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wednesday 31 October 2007 22:47:22 Stef Coene wrote:
On Wednesday 31 October 2007, Hubbard, Greg L wrote:
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).
I tried to set up file monitoring today and after 1hr, I fixed it by restarting the hobbit server. Not reloading, restarting. So, restart your hobbit server after you changed the config files and the change is not detected.
I've also seen some cases where I need a restart for a threshold to be picked up, but I can't remember needing it for a change in client-local.cfg. So far it looks only like it happens when change where a hosts threshold configuration is (e.g. when adding a new HOST= section where the host was previously catered to by the DEFAULT).
Regards, Buchan
participants (4)
-
bgmilne@staff.telkomsa.net
-
greg.hubbard@eds.com
-
mohnkern@gmail.com
-
stef.coene@docum.org