Xymon Mailing List Archive search

Configuration explanation needed.

12 messages in this thread

list Neil Franken · Tue, 24 Feb 2009 09:27:07 +0200 ·
Hi Guys

I am pretty sure I know how to configure client monitoring from the
hobbit-client.cfg file. However could someone just tell me if I am right
or wrong. I will include a example and what I think it means

HOST=PRMSIIS01
    LOAD 50 90 <-- If the CPU goes above 50% usage turn yellow  90% is
panic level. What about multicore CPU's here?
    DISK C 80 90 <-- If disk c is above 80% capacity yellow if over 90%
panic.

If I have a default section will they get preference over the individual
settings?

Sorry for the basic questions just need to make sure I am 100% with the
program and since no one else can even use Linux here in my office I am
pretty much out there by myself.

Regards
Neil
list Martin Flemming · Tue, 24 Feb 2009 08:41:35 +0100 (CET) ·
Hi !

the first rule match, so if you have special rules for a host or a group
in the hobbit-client.cfg before the default entry, it will match ..

https://it-hobbit/hobbit/help/manpages/man5/hobbit-clients.cfg.5.html

RULES: APPLYING SETTINGS TO SELECTED HOSTS

The entire file is evaluated from the top to bottom, and the first match 
found is used. So you should put the specific settings first, and the 
generic ones last.

cheers,
 	martin
quoted from Neil Franken

On Tue, 24 Feb 2009, Neil Franken wrote:
Hi Guys

I am pretty sure I know how to configure client monitoring from the
hobbit-client.cfg file. However could someone just tell me if I am right
or wrong. I will include a example and what I think it means

HOST=PRMSIIS01
   LOAD 50 90 <-- If the CPU goes above 50% usage turn yellow  90% is
panic level. What about multicore CPU's here?
   DISK C 80 90 <-- If disk c is above 80% capacity yellow if over 90%
panic.

If I have a default section will they get preference over the individual
settings?

Sorry for the basic questions just need to make sure I am 100% with the
program and since no one else can even use Linux here in my office I am
pretty much out there by myself.

Regards
Neil

list Neil Franken · Tue, 24 Feb 2009 10:22:50 +0200 ·
Thanks 

My default was first in the list. So I could not understand why certain
things worked but others not. All is well not.

Regards
Neil
quoted from Martin Flemming


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: 24 February 2009 09:42 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Configuration explanation needed.


Hi !

the first rule match, so if you have special rules for a host or a group
in the hobbit-client.cfg before the default entry, it will match ..

https://it-hobbit/hobbit/help/manpages/man5/hobbit-clients.cfg.5.html

RULES: APPLYING SETTINGS TO SELECTED HOSTS

The entire file is evaluated from the top to bottom, and the first match

found is used. So you should put the specific settings first, and the 
generic ones last.

cheers,
 	martin

On Tue, 24 Feb 2009, Neil Franken wrote:
Hi Guys

I am pretty sure I know how to configure client monitoring from the
hobbit-client.cfg file. However could someone just tell me if I am
right
or wrong. I will include a example and what I think it means

HOST=PRMSIIS01
   LOAD 50 90 <-- If the CPU goes above 50% usage turn yellow  90% is
panic level. What about multicore CPU's here?
   DISK C 80 90 <-- If disk c is above 80% capacity yellow if over 90%
panic.

If I have a default section will they get preference over the
individual
settings?

Sorry for the basic questions just need to make sure I am 100% with
the
program and since no one else can even use Linux here in my office I
am
pretty much out there by myself.

Regards
Neil

list Mark Hinkle · Tue, 24 Feb 2009 11:57:48 -0800 ·
What about multicore CPU's here?
This may be a better question for the OS, not xymon. Xymon is only reporting what the server says for load/cpu usage (or for any other value for that matter). Based on your disk "C" reference, I am assuming you question pertains to windows. When I pull up the Task Manager on Windows, there is a "CPU Usage" monitor/graph/thingy that is reporting a single value regardless of the number of CPU's the machine has. It is my belief that this is the value being reported (although I am not involved in development of bbnt, etc.) For *nix, the "load" is not really a direct function of the number of cpu's, it is (if I recall correctly) a count of processes in the run queue. I don't know if "CPU Usage" under windows is the same thing or some type of aggregation/averaging, etc. Hope this helps.

later.

-- 
Mark L. Hinkle
user-9816e24cee8c@xymon.invalid
list Thorsten Erdmann · Wed, 25 Feb 2009 15:53:37 +0100 ·
Hi

I have written a script which generates several hobbit bbhosts include files automaticly from our inventory system. Now I have a problem when a host has been deinstalled.
I delete the entry from the hobbit config but the old datafiles (rrd and so on) keep there forever.

Is there a tool to scan the complete hobbit bbhost hierarchy and delete all data which are not longer needed?

Thank you

Thorsten Erdmann


If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
list Greg L Hubbard · Wed, 25 Feb 2009 08:58:59 -0600 ·
Are you using the "drop host" function in the "bb" command?


	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid] 
	Sent: Wednesday, February 25, 2009 8:54 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Howto delete abandoned datafiles
quoted from Thorsten Erdmann
	
	
	Hi
	
	I have written a script which generates several hobbit bbhosts
include files automaticly from our inventory system. Now I have a
problem when a host has been deinstalled.
	I delete the entry from the hobbit config but the old datafiles
(rrd and so on) keep there forever.
	
	Is there a tool to scan the complete hobbit bbhost hierarchy and
delete all data which are not longer needed?
	
	Thank you
	
	Thorsten Erdmann
	
	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation.
list Thorsten Erdmann · Wed, 25 Feb 2009 16:50:25 +0100 ·
No. I export the data from our inventory and simply regenerate the bbhosts files. So old hosts simply are missing in the new bbhosts files. So I don't know which hosts were deleted. Therefore I would need to store the old export file and compare it to the new one to find the differences and use the "drop host" command. I find that very complicated. 
Such a cleanup utility would also be helpful if one edits the bbhosts by hand and forgets to drop a host he has deleted.

I just started to write a shellscript which scans the rrd directory and tries to find the host in the bbhost files. But is complicated to follow all the includes. I thought bbhostgrep is the answer but it only can find a test, not a host.

Any ideas
Thorsten


user-d970b5e56ec9@xymon.invalid 25.02.2009 16:01
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
user-ae9b8668bcde@xymon.invalid
Kopie

Thema
RE: [hobbit] Howto delete abandoned datafiles
quoted from Greg L Hubbard


Are you using the "drop host" function in the "bb" command?

From: user-9219fb9415b1@xymon.invalid [mailto:user-9219fb9415b1@xymon.invalid] Sent: Wednesday, February 25, 2009 8:54 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Howto delete abandoned datafiles


Hi

I have written a script which generates several hobbit bbhosts include files automaticly from our inventory system. Now I have a problem when a host has been deinstalled.
I delete the entry from the hobbit config but the old datafiles (rrd and so on) keep there forever.

Is there a tool to scan the complete hobbit bbhost hierarchy and delete all data which are not longer needed?

Thank you

Thorsten Erdmann

If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. 


If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
list Greg L Hubbard · Wed, 25 Feb 2009 10:09:48 -0600 ·
It seems to me that the cleanest way is to figure out how to make your
inventory system "know" when it is losing something.  I agree that it is
easier to write a system that has no memory of what it did in prior
runs.
 
If your inventory system can be queried, or if you have an intermediate
file that can be searched, you might be able to run a "notification"
script from the alert system that would fire on "purple" alarms.  What
the script could do is take the host name in the alarm and look for it
in your inventory or other file -- if found, quit.  If not found, then
the "drop host" command.  This is a kludge, and might cause other
issues, but it is one way to keep your display cleaned up.
 
Others may have much better ideas!
 
GLH


	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid] 
	Sent: Wednesday, February 25, 2009 9:50 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned
quoted from Thorsten Erdmann
datafiles
	
	
	No. I export the data from our inventory and simply regenerate
the bbhosts files. So old hosts simply are missing in the new bbhosts
files. So I don't know which hosts were deleted. Therefore I would need
to store the old export file and compare it to the new one to find the
differences and use the "drop host" command. I find that very
complicated. 
	
	Such a cleanup utility would also be helpful if one edits the
bbhosts by hand and forgets to drop a host he has deleted.
	
	I just started to write a shellscript which scans the rrd
directory and tries to find the host in the bbhost files. But is
complicated to follow all the includes. I thought bbhostgrep is the
answer but it only can find a test, not a host.
	
	Any ideas
	Thorsten
	
	
user-d970b5e56ec9@xymon.invalid 

25.02.2009 16:01 
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
user-ae9b8668bcde@xymon.invalid 
Kopie
Thema
RE: [hobbit] Howto delete abandoned datafiles

	
	Are you using the "drop host" function in the "bb" command?
	
	
	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid] 
	Sent: Wednesday, February 25, 2009 8:54 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Howto delete abandoned datafiles
	
	
	Hi
	
	I have written a script which generates several hobbit bbhosts
include files automaticly from our inventory system. Now I have a
problem when a host has been deinstalled.
	I delete the entry from the hobbit config but the old datafiles
(rrd and so on) keep there forever.
	
	Is there a tool to scan the complete hobbit bbhost hierarchy and
delete all data which are not longer needed?
	
	Thank you
	
	Thorsten Erdmann
	
	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation. 
	
	
	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation.
list Thorsten Erdmann · Wed, 25 Feb 2009 17:19:49 +0100 ·
I now made it with the bbshowhosts command. This command writes a complete bbhosts file. So I temporarely generate that complete file and then cycle through all the directories in the rrd directory and grep for each in that complete bbhosts file. If I not find a host there I drop it.

If there is a nicer solution please tell me.

#!/bin/sh

#
# find old files from components which are no longer in BB-HOSTS
#
. /etc/hobbit/hobbitserver.cfg
echo "BBRRDS: $BBRRDS"
$BBHOME/bin/bbhostshow /etc/hobbit/bb-hosts >hosts.tmp

for i in `ls $BBRRDS`
do
  grep $i hosts.tmp >/dev/null
  if [ "$?" -ne "0" ]
  then
    echo "$i found"
    # drop the host $i here
  fi
done
rm hosts.tmp

Thanks you for your hints.

Thorsten Erdmann


user-d970b5e56ec9@xymon.invalid 25.02.2009 17:12
quoted from Greg L Hubbard
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
user-ae9b8668bcde@xymon.invalid
Kopie

Thema
RE: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned datafiles


It seems to me that the cleanest way is to figure out how to make your inventory system "know" when it is losing something.  I agree that it is easier to write a system that has no memory of what it did in prior runs.
 If your inventory system can be queried, or if you have an intermediate file that can be searched, you might be able to run a "notification" script from the alert system that would fire on "purple" alarms.  What the script could do is take the host name in the alarm and look for it in your inventory or other file -- if found, quit.  If not found, then the "drop host" command.  This is a kludge, and might cause other issues, but it is one way to keep your display cleaned up.
 Others may have much better ideas!
 GLH

From: user-9219fb9415b1@xymon.invalid [mailto:user-9219fb9415b1@xymon.invalid] Sent: Wednesday, February 25, 2009 9:50 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned datafiles


No. I export the data from our inventory and simply regenerate the bbhosts files. So old hosts simply are missing in the new bbhosts files. So I don't know which hosts were deleted. Therefore I would need to store the old export file and compare it to the new one to find the differences and use the "drop host" command. I find that very complicated. 
Such a cleanup utility would also be helpful if one edits the bbhosts by hand and forgets to drop a host he has deleted.

I just started to write a shellscript which scans the rrd directory and tries to find the host in the bbhost files. But is complicated to follow all the includes. I thought bbhostgrep is the answer but it only can find a test, not a host.

Any ideas
Thorsten


user-d970b5e56ec9@xymon.invalid 25.02.2009 16:01 
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
user-ae9b8668bcde@xymon.invalid Kopie

Thema
RE: [hobbit] Howto delete abandoned datafiles


Are you using the "drop host" function in the "bb" command?

From: user-9219fb9415b1@xymon.invalid [mailto:user-9219fb9415b1@xymon.invalid] Sent: Wednesday, February 25, 2009 8:54 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Howto delete abandoned datafiles


Hi

I have written a script which generates several hobbit bbhosts include files automaticly from our inventory system. Now I have a problem when a host has been deinstalled.
I delete the entry from the hobbit config but the old datafiles (rrd and so on) keep there forever.

Is there a tool to scan the complete hobbit bbhost hierarchy and delete all data which are not longer needed?

Thank you

Thorsten Erdmann

If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. 

If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. 


If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
list Martin Flemming · Wed, 25 Feb 2009 18:43:45 +0100 (CET) ·
Hi !

i use the very nice bbdataclean.pl script by Eric Schwimmer . :-)

.. it is a long time ago as he send a mail on this list .. where is he .. ? :-(

and the side was many month not availabe
but now as i watch today again, it was online again !

http://nerdvana.org/eric/bbtools/

bbhostedit
A CGI bb-hosts editor

bblogmon
A log monitor and alarm generator

bbdataclean
A tool to clean out old/invalid hosts from your hobbit data

bbmsg.pm
A pure-Perl module used to send messages to a display server


hobbit icons
A set of slightly less zany icons for the hobbit system


maybe some nice tools/addons for the shire ..


cheers,
 	martin
quoted from Thorsten Erdmann


On Wed, 25 Feb 2009, Hubbard, Greg L wrote:
It seems to me that the cleanest way is to figure out how to make your
inventory system "know" when it is losing something.  I agree that it is
easier to write a system that has no memory of what it did in prior
runs.

If your inventory system can be queried, or if you have an intermediate
file that can be searched, you might be able to run a "notification"
script from the alert system that would fire on "purple" alarms.  What
the script could do is take the host name in the alarm and look for it
in your inventory or other file -- if found, quit.  If not found, then
the "drop host" command.  This is a kludge, and might cause other
issues, but it is one way to keep your display cleaned up.

Others may have much better ideas!

GLH


	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid]
	Sent: Wednesday, February 25, 2009 9:50 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned
datafiles


	No. I export the data from our inventory and simply regenerate
the bbhosts files. So old hosts simply are missing in the new bbhosts
files. So I don't know which hosts were deleted. Therefore I would need
to store the old export file and compare it to the new one to find the
differences and use the "drop host" command. I find that very
complicated.

	Such a cleanup utility would also be helpful if one edits the
bbhosts by hand and forgets to drop a host he has deleted.

	I just started to write a shellscript which scans the rrd
directory and tries to find the host in the bbhost files. But is
complicated to follow all the includes. I thought bbhostgrep is the
answer but it only can find a test, not a host.

	Any ideas
	Thorsten


user-d970b5e56ec9@xymon.invalid

25.02.2009 16:01
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
user-ae9b8668bcde@xymon.invalid
Kopie
Thema
RE: [hobbit] Howto delete abandoned datafiles


	Are you using the "drop host" function in the "bb" command?


	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid]
	Sent: Wednesday, February 25, 2009 8:54 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Howto delete abandoned datafiles


	Hi

	I have written a script which generates several hobbit bbhosts
include files automaticly from our inventory system. Now I have a
problem when a host has been deinstalled.
	I delete the entry from the hobbit config but the old datafiles
(rrd and so on) keep there forever.

	Is there a tool to scan the complete hobbit bbhost hierarchy and
delete all data which are not longer needed?

	Thank you

	Thorsten Erdmann

	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation.


	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation.

list Galen Johnson · Wed, 25 Feb 2009 12:57:55 -0500 ·
It'd be nice if these were available on Xymonton...
quoted from Martin Flemming

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: Wednesday, February 25, 2009 12:44 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned datafiles


Hi !

i use the very nice bbdataclean.pl script by Eric Schwimmer . :-)

.. it is a long time ago as he send a mail on this list .. where is he .. ? :-(

and the side was many month not availabe
but now as i watch today again, it was online again !

http://nerdvana.org/eric/bbtools/

bbhostedit
A CGI bb-hosts editor

bblogmon
A log monitor and alarm generator

bbdataclean
A tool to clean out old/invalid hosts from your hobbit data

bbmsg.pm
A pure-Perl module used to send messages to a display server


hobbit icons
A set of slightly less zany icons for the hobbit system


maybe some nice tools/addons for the shire ..


cheers,
 	martin


On Wed, 25 Feb 2009, Hubbard, Greg L wrote:
It seems to me that the cleanest way is to figure out how to make your
inventory system "know" when it is losing something.  I agree that it is
easier to write a system that has no memory of what it did in prior
runs.

If your inventory system can be queried, or if you have an intermediate
file that can be searched, you might be able to run a "notification"
script from the alert system that would fire on "purple" alarms.  What
the script could do is take the host name in the alarm and look for it
in your inventory or other file -- if found, quit.  If not found, then
the "drop host" command.  This is a kludge, and might cause other
issues, but it is one way to keep your display cleaned up.

Others may have much better ideas!

GLH


	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid]
	Sent: Wednesday, February 25, 2009 9:50 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned
datafiles


	No. I export the data from our inventory and simply regenerate
the bbhosts files. So old hosts simply are missing in the new bbhosts
files. So I don't know which hosts were deleted. Therefore I would need
to store the old export file and compare it to the new one to find the
differences and use the "drop host" command. I find that very
complicated.

	Such a cleanup utility would also be helpful if one edits the
bbhosts by hand and forgets to drop a host he has deleted.

	I just started to write a shellscript which scans the rrd
directory and tries to find the host in the bbhost files. But is
complicated to follow all the includes. I thought bbhostgrep is the
answer but it only can find a test, not a host.

	Any ideas
	Thorsten


user-d970b5e56ec9@xymon.invalid

25.02.2009 16:01
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
user-ae9b8668bcde@xymon.invalid
Kopie
Thema
RE: [hobbit] Howto delete abandoned datafiles


	Are you using the "drop host" function in the "bb" command?


	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid]
	Sent: Wednesday, February 25, 2009 8:54 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Howto delete abandoned datafiles


	Hi

	I have written a script which generates several hobbit bbhosts
include files automaticly from our inventory system. Now I have a
problem when a host has been deinstalled.
	I delete the entry from the hobbit config but the old datafiles
(rrd and so on) keep there forever.

	Is there a tool to scan the complete hobbit bbhost hierarchy and
delete all data which are not longer needed?

	Thank you

	Thorsten Erdmann

	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation.


	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation.

list Henrik Størner · Thu, 26 Feb 2009 10:58:06 +0100 ·
quoted from Galen Johnson
On Wed, Feb 25, 2009 at 04:50:25PM +0100, user-9219fb9415b1@xymon.invalid wrote:
No. I export the data from our inventory and simply regenerate the bbhosts files. So old hosts simply are missing in the new bbhosts files. So I don't know which hosts were deleted. Therefore I would need to store the old export file and compare it to the new one to find the differences and use the "drop host" command. I find that very complicated. 
"bbhostshow" lists the full bb-hosts file, with all of the includes
done. Or you can query the hobbitd daemon with
   bb 127.0.0.1 "hobbitdboard test=info fields=hostname"
to get a list of the currently known hosts.

Matching that against the directory names in ~hobbit/data/rrd/ would be
fairly trivial, and then you can use the    bb 127.0.0.1 "drop HOSTNAME"
to completely cleanup those hosts that no longer exist.


Regards,
Henrik