Xymon Mailing List Archive search

custom scripts

15 messages in this thread

list Balasubramaniann · Thu, 6 Sep 2007 02:31:42 +0530 ·
Hi all,

can anyone guide me how to make a customized scripts in hobbit
at present i have made RHEL4 as hobbit server i have not installed from
source rather than i installed from rpm provided from razoredge and other
client include solairs and hp-ux i had more tha 100 servers the tips and
tricks provided in hobbit is not sufficient for me

plz tell how to write customized script where to put the script at client
side and server side

Thanks&Regards
Balasubramanian.N
Tata Consultancy Services
Maker Towers 'E' Block, 11th Floor,
Cuffe Parade, Colaba,
Mumbai - 400 005,Maharashtra
India
Cell:- 9967214514
Mailto: user-697fe82d17ab@xymon.invalid
Website: http://www.tcs.com
Experience certainty.   IT Services
                  Business Solutions
                  Outsourcing
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
list Payam Jahromi · Mon, 2 Nov 2009 12:40:56 -0800 ·
I am a newbie to Hobbit, and this is probably a simple question to answer. Here is what I'm trying to do:

I have custom scripts I need to incorporate to Hobbit. I saw the page http://hobbitmon.sourceforge.net/docs/hobbit-tips.html#scripts but I still don't completely understand it. If I could get 1 of my scripts set up, then I can probably figure out how to do the rest.

I have 2 types of custom scripts: client and server. Here is an example of each. I just need to know exactly how the script would be set up. Note, I had these running on Nagios before:

1. (server) this is the custom script we ran on our old monitoring (nagios):
#!/bin/sh

WEB_CHECK=`curl http://www.example.com | grep value | wc -l`

if [ $WEB_CHECK -eq 1 ]
   then
        echo "Result OK"
else
        echo "Failed"
        exit 2
fi

Question: Need to know how to incorporate this on the hobbit server, and where it would show on the GUI?

2. (client) this is custom script that used "NRPE" on nagios:
- I have a script that runs on 3 clients, let's call it /usr/local/sbin/script.pl
- this script returns an output of a number
- on the hobbit server, I want to be get the result of this script for each client, add them together, then alert based on the number. So here is the script I had on the Nagios server:
#!/bin/sh
# Script to check transactions on ecom-1/2

THRESHOLD=1
SERVER1=`ssh server1 /usr/local/nrpe/script.pl`
SERVER2=`ssh server2 /usr/local/nrpe/script.pl`
SERVER3=`ssh server3 /usr/local/nrpe/script.pl`

TOTAL=`expr $SERVER1 + $SERVER2 + $SERVER3`


if [ $TOTAL -lt $THRESHOLD ] ; then
     echo "Number ($TOTAL) Failed"
     exit 2
else
     echo "Number ($TOTAL) Success"
     exit 0
fi

Question: How would I incorporate that in Hobbit?

Thanks!
Payam
list Josh Luthman · Mon, 2 Nov 2009 18:53:42 -0500 ·
1.
Look at http://xymon.com/hobbit-cgi/viewconf.sh
172.16.10.5 miro.hswn.dk # ssh http://miro.hswn.dk/

Then look at the miro.hswn.dk server under the http column here:
http://xymon.com/hobbit/servers/servers.html

Just put your information in.  No custom script needed.

2.
I can't help with custom scripts but the document expressed you need to...

# Tell Hobbit about it
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`

and you have not done that in your script - that's definitely a concern.
Perhaps looking at other scripts will help you - these are on the Deadcat
and Xymonton here:
http://www.deadcat.net/
http://xymonton.trantor.org/doku.php

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle
quoted from Payam Jahromi


On Mon, Nov 2, 2009 at 3:40 PM, Payam Jahromi <user-280becfaca2d@xymon.invalid>wrote:
 I am a newbie to Hobbit, and this is probably a simple question to
answer. Here is what I’m trying to do:


I have custom scripts I need to incorporate to Hobbit. I saw the page
http://hobbitmon.sourceforge.net/docs/hobbit-tips.html#scripts but I still
don’t completely understand it. If I could get 1 of my scripts set up, then
I can probably figure out how to do the rest.


I have 2 types of custom scripts: client and server. Here is an example of
each. I just need to know exactly how the script would be set up. Note, I
had these running on Nagios before:


1. (server) this is the custom script we ran on our old monitoring
(nagios):

#!/bin/sh


WEB_CHECK=`curl http://www.example.com | grep value | wc -l`


if [ $WEB_CHECK -eq 1 ]

   then

        echo "Result OK"

else

        echo "Failed"

        exit 2

fi


Question: Need to know how to incorporate this on the hobbit server, and
where it would show on the GUI?


2. (client) this is custom script that used “NRPE” on nagios:

- I have a script that runs on 3 clients, let’s call it /usr/local/sbin/
script.pl
quoted from Payam Jahromi

- this script returns an output of a number

- on the hobbit server, I want to be get the result of this script for each
client, add them together, then alert based on the number. So here is the
script I had on the Nagios server:

#!/bin/sh

# Script to check transactions on ecom-1/2


THRESHOLD=1

SERVER1=`ssh server1 /usr/local/nrpe/script.pl`

SERVER2=`ssh server2 /usr/local/nrpe/script.pl`

SERVER3=`ssh server3 /usr/local/nrpe/script.pl`


TOTAL=`expr $SERVER1 + $SERVER2 + $SERVER3`


if [ $TOTAL -lt $THRESHOLD ] ; then

     echo "Number ($TOTAL) Failed"

     exit 2

else

     echo "Number ($TOTAL) Success"

     exit 0

fi


Question: How would I incorporate that in Hobbit?


Thanks!

Payam
list Bruce White · Wed, 4 Nov 2009 08:21:28 -0600 ·
There is a nice write-up about incorporating custom scripts into hobbit
(xymon) on the help menu @ help->.Tips and Tricks.
 
The status "dot" will appear by whatever you tell hobbit to place it at
in your "bb" status message.   So the command that Josh put in point #2:
 
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`

Actually expands to something like:
 
/hobbit/client/bin/bb 10.1.1.25  "status myserver.dns.domain Custom_Test
green  Wed Nov  4 08:19:23 CST 2009"
 
So on your web page a server named myserver.dns.domain with a test
column of Custom_Test with a green status.
 
        ........Bruce
 

 Bruce White
 Senior Enterprise Systems Engineer | Phone: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/
 
 
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
quoted from Josh Luthman
 

From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] 
Sent: Monday, November 02, 2009 5:54 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] custom scripts


1.
Look at http://xymon.com/hobbit-cgi/viewconf.sh
172.16.10.5 miro.hswn.dk # ssh http://miro.hswn.dk/

Then look at the miro.hswn.dk server under the http column here:
http://xymon.com/hobbit/servers/servers.html

Just put your information in.  No custom script needed.

2.
I can't help with custom scripts but the document expressed you need
to...

# Tell Hobbit about it
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`

and you have not done that in your script - that's definitely a concern.
Perhaps looking at other scripts will help you - these are on the
Deadcat and Xymonton here:
http://www.deadcat.net/
http://xymonton.trantor.org/doku.php

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Mon, Nov 2, 2009 at 3:40 PM, Payam Jahromi <user-280becfaca2d@xymon.invalid>
quoted from Josh Luthman
wrote:


	I am a newbie to Hobbit, and this is probably a simple question
to answer. Here is what I'm trying to do:

	 
	I have custom scripts I need to incorporate to Hobbit. I saw the
page http://hobbitmon.sourceforge.net/docs/hobbit-tips.html#scripts but
I still don't completely understand it. If I could get 1 of my scripts
set up, then I can probably figure out how to do the rest.

	 
	I have 2 types of custom scripts: client and server. Here is an
example of each. I just need to know exactly how the script would be set
up. Note, I had these running on Nagios before:

	 
	1. (server) this is the custom script we ran on our old
monitoring (nagios):

	#!/bin/sh

	 
	WEB_CHECK=`curl http://www.example.com | grep value | wc -l`

	 
	if [ $WEB_CHECK -eq 1 ]

	   then

	        echo "Result OK"

	else

	        echo "Failed"

	        exit 2

	fi

	 
	Question: Need to know how to incorporate this on the hobbit
server, and where it would show on the GUI?

	 
	2. (client) this is custom script that used "NRPE" on nagios:

	- I have a script that runs on 3 clients, let's call it
/usr/local/sbin/script.pl

	- this script returns an output of a number

	- on the hobbit server, I want to be get the result of this
script for each client, add them together, then alert based on the
number. So here is the script I had on the Nagios server:

	#!/bin/sh

	# Script to check transactions on ecom-1/2

	 
	THRESHOLD=1

	SERVER1=`ssh server1 /usr/local/nrpe/script.pl`

	SERVER2=`ssh server2 /usr/local/nrpe/script.pl`

	SERVER3=`ssh server3 /usr/local/nrpe/script.pl`

	 
	TOTAL=`expr $SERVER1 + $SERVER2 + $SERVER3`

	 
	if [ $TOTAL -lt $THRESHOLD ] ; then

	     echo "Number ($TOTAL) Failed"

	     exit 2

	else 

	     echo "Number ($TOTAL) Success"

	     exit 0

	fi

	 
	Question: How would I incorporate that in Hobbit?

	 
	Thanks!

	Payam
list Daniel Nordquist · Thu, 5 Nov 2009 14:49:40 -0500 ·
Hey all, I’m running hobbitmon 4.2.0 and I’m having an issue with client information not displaying on my hobbit status page.  I can add objects RE:  xxx.xxx.xxx.xxx server # https://server and it will display the http and sslcert status, along with conn, info and trends, but I can’t see any other information like cpu, disk, etc.   The only server I have all status info for is the hobbit server itself.

I’m using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin).  The other hobbit server displays all the status data for the same client servers I’m testing against with my hobbit server, but mine does not.

Any ideas?

Before anyone asks why I’m installing a second server, it’s so my team can gather trends and information on our own without relying on another team to set up the clients/servers.

Thanks!
Dan


This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: user-40803320aaf5@xymon.invalid .

If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
list Greg Hubbard · Thu, 5 Nov 2009 13:55:43 -0600 ·
Each Hobbit client will have to be reconfigured to send data to both
servers.  This will require you to "touch" each system, which you might not
be able to do.

GLH

On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel <
quoted from Daniel Nordquist
user-b7c65cb59f49@xymon.invalid> wrote:
 Hey all, I’m running hobbitmon 4.2.0 and I’m having an issue with client
information not displaying on my hobbit status page.  I can add objects RE:
xxx.xxx.xxx.xxx server # https://server and it will display the http and
sslcert status, along with conn, info and trends, but I can’t see any other
information like cpu, disk, etc.   The only server I have all status info
for is the hobbit server itself.


I’m using 4.2.0 because we have a server in house at that version and all
our clients are running the older client, and the Xymon server/client is not
compatible (according to our hobbit admin).  The other hobbit server
displays all the status data for the same client servers I’m testing against
with my hobbit server, but mine does not.


Any ideas?


Before anyone asks why I’m installing a second server, it’s so my team can
gather trends and information on our own without relying on another team to
set up the clients/servers.


Thanks!

Dan


This e-mail message and any attached files are confidential and are
intended solely for the use of the addressee(s) named above. If you are not
the intended recipient, any review, use, or distribution of this e-mail
message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy
regulations, attorney-client work product, or other privileges. If you have
received this confidential communication in error, please notify the sender
immediately by reply e-mail message and permanently delete the original
message. To reply to our email administrator directly, send an email to:
user-40803320aaf5@xymon.invalid .

If this e-mail message concerns a contract matter, be advised that no
employee or agent is authorized to conclude any binding agreement on behalf
of Orlando Health by e-mail without express written confirmation by an
officer of the corporation. Any views or opinions presented in this e-mail
are solely those of the author and do not necessarily represent those of
Orlando Health.
-- 

Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my
advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.
list Josh Luthman · Thu, 5 Nov 2009 15:01:23 -0500 ·
As far as I know all Hobbit clients are compatible with all versions of
Hobbit and Xymon servers.
quoted from Greg Hubbard

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Thu, Nov 5, 2009 at 2:55 PM, Greg Hubbard <user-435e16ecfd6a@xymon.invalid> wrote:
Each Hobbit client will have to be reconfigured to send data to both
servers.  This will require you to "touch" each system, which you might not
be able to do.

GLH

On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel <
user-b7c65cb59f49@xymon.invalid> wrote:
 Hey all, I’m running hobbitmon 4.2.0 and I’m having an issue with client
information not displaying on my hobbit status page.  I can add objects RE:
xxx.xxx.xxx.xxx server # https://server and it will display the http and
sslcert status, along with conn, info and trends, but I can’t see any other
information like cpu, disk, etc.   The only server I have all status info
for is the hobbit server itself.


I’m using 4.2.0 because we have a server in house at that version and all
our clients are running the older client, and the Xymon server/client is not
compatible (according to our hobbit admin).  The other hobbit server
displays all the status data for the same client servers I’m testing against
with my hobbit server, but mine does not.


Any ideas?


Before anyone asks why I’m installing a second server, it’s so my team can
gather trends and information on our own without relying on another team to
set up the clients/servers.


Thanks!

Dan


This e-mail message and any attached files are confidential and are
intended solely for the use of the addressee(s) named above. If you are not
the intended recipient, any review, use, or distribution of this e-mail
message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy
regulations, attorney-client work product, or other privileges. If you have
received this confidential communication in error, please notify the sender
immediately by reply e-mail message and permanently delete the original
message. To reply to our email administrator directly, send an email to:
user-40803320aaf5@xymon.invalid .

If this e-mail message concerns a contract matter, be advised that no
employee or agent is authorized to conclude any binding agreement on behalf
of Orlando Health by e-mail without express written confirmation by an
officer of the corporation. Any views or opinions presented in this e-mail
are solely those of the author and do not necessarily represent those of
Orlando Health.
--
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3)
my advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.
list Matthew Moldvan · Thu, 5 Nov 2009 15:40:08 -0500 ·
Hello everyone,

I have a question on monitoring separate filesystems with different thresholds.  My hobbit-clients.cfg file on the Xymon server includes the following:

(Names changed to protect the innocent of course).

$MACRO=%^(asdf|qwer|jalopy).*(a|s|h|l).xyz.com
HOST=$MACRO
        DISK    / 90 95 GROUP=SOMEONES_PAGER
        DISK    %^/.+$ 90 95 GROUP=SOMEONES_EMAIL
        DISK    %^/export/data/subdir/subdir2/log.* 95 99

However, Xymon doesn't seem to honor the above DISK entries and still marks both "/export/data/subdir/subdir2/log" and "/export/data/subdir/subdir2/log2" as red when it hits 90%+ due to the DEFAULT entry.

We recently migrated to Xymon from an aging Big Brother monitoring infrastructure, which had bb-dftab that had to be on all clients.  From my understanding all of this is now handled on the server but the above just doesn't seem to be working.

My questions at this point are:

        - Are my regular expressions specified correctly?
        - Does Xymon support full extended regular expressions?  (e.g. the difference between grep and egrep on Sun systems)
        - Is my understanding of the above accurate with respect to alerts about file system monitoring being generated on the server?

Thanks,
Matt.

Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
38500 Mound Rd.
Sterling Heights, MI.  48310

This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
list Matthew Moldvan · Thu, 5 Nov 2009 16:08:19 -0500 ·
Oops, guess I should have changed the subject line before sending this off.  Been a long day ...

Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
XXXXX Mound Rd.
Sterling Heights, MI.  48310
Desk: (XXX) XXX-XXXX
Oracle IM: moldvanm

This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.


Matthew Moldvan/GIS/CSC at CSC 11/05/2009 03:40 PM
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] possible issue with two hobbit servers reporting for the same client?
quoted from Matthew Moldvan


Hello everyone, 
I have a question on monitoring separate filesystems with different thresholds.  My hobbit-clients.cfg file on the Xymon server includes the following: 
(Names changed to protect the innocent of course). 
$MACRO=%^(asdf|qwer|jalopy).*(a|s|h|l).xyz.com HOST=$MACRO         DISK    / 90 95 GROUP=SOMEONES_PAGER         DISK    %^/.+$ 90 95 GROUP=SOMEONES_EMAIL         DISK    %^/export/data/subdir/subdir2/log.* 95 99 
However, Xymon doesn't seem to honor the above DISK entries and still marks both "/export/data/subdir/subdir2/log" and "/export/data/subdir/subdir2/log2" as red when it hits 90%+ due to the DEFAULT entry. 
We recently migrated to Xymon from an aging Big Brother monitoring infrastructure, which had bb-dftab that had to be on all clients.  From my understanding all of this is now handled on the server but the above just doesn't seem to be working. 
My questions at this point are: 
        - Are my regular expressions specified correctly?         - Does Xymon support full extended regular expressions?  (e.g. the difference between grep and egrep on Sun systems)         - Is my understanding of the above accurate with respect to alerts about file system monitoring being generated on the server? 
Thanks, Matt. 
Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
38500 Mound Rd.
Sterling Heights, MI.  48310

This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
list Greg Hubbard · Thu, 5 Nov 2009 15:42:09 -0600 ·
quoted from Matthew Moldvan
"However, Xymon doesn't seem to honor the above DISK entries and still marks
both
"/export/data/subdir/subdir2/log" and "/export/data/subdir/subdir2/log2" as
red when it hits 90%+ due to the DEFAULT entry."

Is the DEFAULT entry above or below this?  Xymon stops at the first match.

You might try hard coding something instead of using the fancy $MACRO just
to separate the problems of "is my DISK statement right" from "is my fancy
$MACRO right".
quoted from Matthew Moldvan

GLH

On Thu, Nov 5, 2009 at 2:40 PM, Matthew Moldvan <user-ffaad6c7b6c3@xymon.invalid> wrote:
Hello everyone,

I have a question on monitoring separate filesystems with different
thresholds.  My hobbit-clients.cfg file on the Xymon server includes the
following:

(Names changed to protect the innocent of course).

$MACRO=%^(asdf|qwer|jalopy).*(a|s|h|l).xyz.com
HOST=$MACRO
        DISK    / 90 95 GROUP=SOMEONES_PAGER
        DISK    %^/.+$ 90 95 GROUP=SOMEONES_EMAIL
        DISK    %^/export/data/subdir/subdir2/log.* 95 99

However, Xymon doesn't seem to honor the above DISK entries and still marks
both "/export/data/subdir/subdir2/log" and
"/export/data/subdir/subdir2/log2" as red when it hits 90%+ due to the
DEFAULT entry.

We recently migrated to Xymon from an aging Big Brother monitoring
infrastructure, which had bb-dftab that had to be on all clients.  From my
understanding all of this is now handled on the server but the above just
doesn't seem to be working.

My questions at this point are:

        - Are my regular expressions specified correctly?
        - Does Xymon support full extended regular expressions?  (e.g. the
difference between grep and egrep on Sun systems)
        - Is my understanding of the above accurate with respect to alerts
about file system monitoring being generated on the server?

Thanks,
Matt.

Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
38500 Mound Rd.
Sterling Heights, MI.  48310

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement or
government initiative expressly permitting the use of e-mail for such
purpose.

-- 
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my
advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.
list Matthew Moldvan · Thu, 5 Nov 2009 17:10:36 -0500 ·
The default is at 90 95, which it seems to be applying.  I'll try hard coding the hostname and work from there ...

The question still remains: does Xymon support extended regular expressions?
quoted from Greg Hubbard

Thanks,
Matt.

Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
XXXXX Mound Rd.
Sterling Heights, MI.  48310
Desk: (XXX) XXX-XXXX
Oracle IM: moldvanm

This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.


Greg Hubbard <user-435e16ecfd6a@xymon.invalid> 11/05/2009 04:42 PM
quoted from Greg Hubbard
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] possible issue with two hobbit servers reporting for the same client?


"However, Xymon doesn't seem to honor the above DISK entries and still marks both
"/export/data/subdir/subdir2/log" and "/export/data/subdir/subdir2/log2" as red when it hits 90%+ due to the DEFAULT entry."
 Is the DEFAULT entry above or below this?  Xymon stops at the first match.
 You might try hard coding something instead of using the fancy $MACRO just to separate the problems of "is my DISK statement right" from "is my fancy $MACRO right".
 GLH

On Thu, Nov 5, 2009 at 2:40 PM, Matthew Moldvan <user-ffaad6c7b6c3@xymon.invalid> wrote:

Hello everyone, 
I have a question on monitoring separate filesystems with different thresholds.  My hobbit-clients.cfg file on the Xymon server includes the following: 
(Names changed to protect the innocent of course). 
$MACRO=%^(asdf|qwer|jalopy).*(a|s|h|l).xyz.com HOST=$MACRO         DISK    / 90 95 GROUP=SOMEONES_PAGER         DISK    %^/.+$ 90 95 GROUP=SOMEONES_EMAIL         DISK    %^/export/data/subdir/subdir2/log.* 95 99 
However, Xymon doesn't seem to honor the above DISK entries and still marks both "/export/data/subdir/subdir2/log" and "/export/data/subdir/subdir2/log2" as red when it hits 90%+ due to the DEFAULT entry. 
We recently migrated to Xymon from an aging Big Brother monitoring infrastructure, which had bb-dftab that had to be on all clients.  From my understanding all of this is now handled on the server but the above just doesn't seem to be working. 
My questions at this point are: 
        - Are my regular expressions specified correctly?         - Does Xymon support full extended regular expressions?  (e.g. the difference between grep and egrep on Sun systems)         - Is my understanding of the above accurate with respect to alerts about file system monitoring being generated on the server? 
Thanks, Matt. 
Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
38500 Mound Rd.
Sterling Heights, MI.  48310

This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.


-- 
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
list Henrik Størner · Fri, 6 Nov 2009 06:54:41 +0000 (UTC) ·
quoted from Matthew Moldvan
In <user-5b45d621077f@xymon.invalid> Matthew Moldvan <user-ffaad6c7b6c3@xymon.invalid> writes:
I have a question on monitoring separate filesystems with different thresholds.  My hobbit-clients.cfg file on the Xymon server includes the following:
(Names changed to protect the innocent of course).
$MACRO=%^(asdf|qwer|jalopy).*(a|s|h|l).xyz.com
HOST=$MACRO
       DISK    / 90 95 GROUP=SOMEONES_PAGER
       DISK    %^/.+$ 90 95 GROUP=SOMEONES_EMAIL
       DISK    %^/export/data/subdir/subdir2/log.* 95 99
However, Xymon doesn't seem to honor the above DISK entries and still marks both "/export/data/subdir/subdir2/log" and "/export/data/subdir/subdir2/log2" as red when it hits 90%+ due to the DEFAULT entry.
You should reverse the order of your rules. As the hobbit-clients.cfg man page says:

     "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.

So what happens is that your second rule "DISK %^/.+$" matches everything,
since all of your filesystems begin with "/", so that is the rule that
is applied.

(Your first rule is OK, because it is not a pattern - so it will only match
 the root filesystem).
quoted from Matthew Moldvan

My questions at this point are:
       - Are my regular expressions specified correctly?
Except for the order, yes.

       - Does Xymon support full extended regular expressions?  (e.g. the difference between grep and egrep on Sun systems)
Xymon uses the "pcre" library, so it support "Perl-compatible" regular
expressions. 
       - Is my understanding of the above accurate with respect to alerts about file system monitoring being generated on the server?
Not sure what you mean by this, but it seems ok. You must have some corresponding entries in your hobbit-alerts.cfg file for the
"SOMEONES_PAGER" and "SOMEONES_EMAIL" groups, like

    GROUP=SOMEONES_EMAIL
       MAIL user-d083d77d33f5@xymon.invalid


Regards,
Henrik
list Daniel Nordquist · Fri, 6 Nov 2009 07:39:13 -0500 ·
Thanks Greg.  I can't find where I would make that setting.  Can you enlighten me?

Thanks,
Dan
quoted from Greg Hubbard


From: Greg Hubbard [mailto:user-435e16ecfd6a@xymon.invalid]
Sent: Thursday, November 05, 2009 2:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] possible issue with two hobbit servers reporting for the same client?

Each Hobbit client will have to be reconfigured to send data to both servers.  This will require you to "touch" each system, which you might not be able to do.

GLH
On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel <user-b7c65cb59f49@xymon.invalid<mailto:user-b7c65cb59f49@xymon.invalid>> wrote:

Hey all, I'm running hobbitmon 4.2.0 and I'm having an issue with client information not displaying on my hobbit status page.  I can add objects RE:  xxx.xxx.xxx.xxx server # https://server<https://server/>; and it will display the http and sslcert status, along with conn, info and trends, but I can't see any other information like cpu, disk, etc.   The only server I have all status info for is the hobbit server itself.
quoted from Josh Luthman

I'm using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin).  The other hobbit server displays all the status data for the same client servers I'm testing against with my hobbit server, but mine does not.

Any ideas?

Before anyone asks why I'm installing a second server, it's so my team can gather trends and information on our own without relying on another team to set up the clients/servers.

Thanks!
Dan


This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: user-40803320aaf5@xymon.invalid<mailto:user-40803320aaf5@xymon.invalid> .
quoted from Josh Luthman

If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.


--
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.

This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: user-40803320aaf5@xymon.invalid .

If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
list Daniel Nordquist · Fri, 6 Nov 2009 07:46:49 -0500 ·
Never mind, I found it.  I just have to enter a second bbdisplay setting in the bbwin.cfg file and restart the service.

Thanks for the help!
quoted from Daniel Nordquist


From: Nordquist, Daniel
Sent: Friday, November 06, 2009 7:39 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] possible issue with two hobbit servers reporting for the same client?

Thanks Greg.  I can't find where I would make that setting.  Can you enlighten me?

Thanks,
Dan


From: Greg Hubbard [mailto:user-435e16ecfd6a@xymon.invalid]
Sent: Thursday, November 05, 2009 2:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] possible issue with two hobbit servers reporting for the same client?

Each Hobbit client will have to be reconfigured to send data to both servers.  This will require you to "touch" each system, which you might not be able to do.

GLH
On Thu, Nov 5, 2009 at 1:49 PM, Nordquist, Daniel <user-b7c65cb59f49@xymon.invalid<mailto:user-b7c65cb59f49@xymon.invalid>> wrote:
Hey all, I'm running hobbitmon 4.2.0 and I'm having an issue with client information not displaying on my hobbit status page.  I can add objects RE:  xxx.xxx.xxx.xxx server # https://server<https://server/>; and it will display the http and sslcert status, along with conn, info and trends, but I can't see any other information like cpu, disk, etc.   The only server I have all status info for is the hobbit server itself.

I'm using 4.2.0 because we have a server in house at that version and all our clients are running the older client, and the Xymon server/client is not compatible (according to our hobbit admin).  The other hobbit server displays all the status data for the same client servers I'm testing against with my hobbit server, but mine does not.

Any ideas?

Before anyone asks why I'm installing a second server, it's so my team can gather trends and information on our own without relying on another team to set up the clients/servers.

Thanks!
Dan


This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: user-40803320aaf5@xymon.invalid<mailto:user-40803320aaf5@xymon.invalid> .

If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.


--
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.

This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: user-40803320aaf5@xymon.invalid .

If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.

This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: user-40803320aaf5@xymon.invalid .

If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.
list Buchan Milne · Mon, 9 Nov 2009 18:23:04 +0200 (SAST) ·
[thread formatted for slightly better readability]
quoted from Matthew Moldvan

----- "Matthew Moldvan" <user-ffaad6c7b6c3@xymon.invalid> wrote:
The default is at 90 95, which it seems to be applying.
But, is it listed before or after the host-specific threshold? The DEFAULT rule will match all hosts, and first match wins, so if you added *after* DEFAULT, you must move it to before DEFAULT.
quoted from Matthew Moldvan
I'll try hard
coding the hostname and work from there ...

The question still remains: does Xymon support extended regular
expressions?
Yes it does. The question below about whether DEFAULT precedes or follows your host-specific rule also still remains.

	Greg Hubbard <user-435e16ecfd6a@xymon.invalid>
quoted from Matthew Moldvan
"However, Xymon doesn't seem to honor the above DISK entries and still
marks both
"/export/data/subdir/subdir2/log" and
"/export/data/subdir/subdir2/log2" as red when it hits 90%+ due to the
DEFAULT entry."

Is the DEFAULT entry above or below this? Xymon stops at the first
match.

You might try hard coding something instead of using the fancy $MACRO
just to separate the problems of "is my DISK statement right" from "is
my fancy $MACRO right".