Xymon Mailing List Archive search

change check frequency for one client only?

8 messages in this thread

list Jerry Yu · Thu, 2 Nov 2006 13:33:42 -0500 ·
I had a stability problem with a client where the disk may become
inaccessible. We have a test plan but needs something to detect whether the
disk is writable every minute. Hobbit is running on it. So,  if I can adjust
the check frequency for this client alone to 1m instead of the default 5m,
hobbit checks would fail then alert us, since hobbit clients needs to write
temp files.  Actually, this was how we get alerted yesterday.
list James Wade · Thu, 2 Nov 2006 13:33:02 -0600 ·
I've tried getting Hobbit running on Solaris, and

it still doesn't work. I've been working on it now

for a day.

 
I finally got it to compile and install, but none of 

the applications know where the libraries are.

ie.if I do a ldd, I get the library is not found.
(it's in /usr/local) 

 
Any help would be appreciated.

 
I submitted a problem earlier about it not compiling

with LDAP.. I figured out what the problem was,

it was sourcing ldap from /usr/lib verses /usr/local/lib.

I harded coded it in the ldap.sh

 
LDAPLIB="/usr/local/lib"

LDAPINC="/usr/local/include"

 
And, I got LDAP to compile. However, when I did

the make install. Like many of the other apps.

It doesn't link to /usr/local libraries.

 
James
list Henrik Størner · Thu, 2 Nov 2006 22:02:22 +0100 ·
Hi James,
quoted from James Wade

On Thu, Nov 02, 2006 at 01:33:02PM -0600, James Wade wrote:
I finally got it to compile and install, but none of 
the applications know where the libraries are.
ie.if I do a ldd, I get the library is not found.
(it's in /usr/local) 
Put
  LD_LIBRARY_PATH=/usr/local/lib
in etc/hobbitserver.cfg, and
  LD_LIBRARY_PATH=/usr/local/lib
  export LD_LIBRARY_PATH
in etc/hobbitcgi.cfg
quoted from James Wade
I submitted a problem earlier about it not compiling
with LDAP.. I figured out what the problem was,
it was sourcing ldap from /usr/lib verses /usr/local/lib.

I harded coded it in the ldap.sh
You could have run the configure script with --ldapinclude and --ldaplib
options.


Regards,
Henrik
list James Wade · Thu, 2 Nov 2006 16:42:27 -0600 ·
I've got it working now.

Does hobbit come with vmstat, iostat, netstat tests?

I'm moving my Big Brother monitoring over, and
I've loaded the client on one system, but vmstat,
iostat, netstat is gone. I did have larrd running
on the client.

I thought hobbit would do vmstat, iostat, etc..

Thanks again...>James
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, November 02, 2006 3:02 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Hobbit on Solaris Doesn't work

Hi James,

On Thu, Nov 02, 2006 at 01:33:02PM -0600, James Wade wrote:
I finally got it to compile and install, but none of 
the applications know where the libraries are.
ie.if I do a ldd, I get the library is not found.
(it's in /usr/local) 
Put
  LD_LIBRARY_PATH=/usr/local/lib
in etc/hobbitserver.cfg, and
  LD_LIBRARY_PATH=/usr/local/lib
  export LD_LIBRARY_PATH
in etc/hobbitcgi.cfg
I submitted a problem earlier about it not compiling
with LDAP.. I figured out what the problem was,
it was sourcing ldap from /usr/lib verses /usr/local/lib.

I harded coded it in the ldap.sh
You could have run the configure script with --ldapinclude and --ldaplib
options.


Regards,
Henrik
list Great Dilla · Thu, 2 Nov 2006 15:04:06 -0800 ·
if you want to skip adding things to library/linker variables like
LD_LIBRARY_PATH, you might want to run crle ( crle -u -v -i
/usr/local/lib:LIBRARY_DIR:LIBRARY_DIR ).. -v turns on verbose so you
know what is happening.

that way your applications will run without trouble of not finding the
libraries.

hope this helps.
quoted from James Wade

On 11/2/06, James Wade <user-659655b2ea05@xymon.invalid> wrote:
I've got it working now.

Does hobbit come with vmstat, iostat, netstat tests?

I'm moving my Big Brother monitoring over, and
I've loaded the client on one system, but vmstat,
iostat, netstat is gone. I did have larrd running
on the client.

I thought hobbit would do vmstat, iostat, etc..

Thanks again...>James

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, November 02, 2006 3:02 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Hobbit on Solaris Doesn't work

Hi James,

On Thu, Nov 02, 2006 at 01:33:02PM -0600, James Wade wrote:
I finally got it to compile and install, but none of
the applications know where the libraries are.
ie.if I do a ldd, I get the library is not found.
(it's in /usr/local)
Put
  LD_LIBRARY_PATH=/usr/local/lib
in etc/hobbitserver.cfg, and
  LD_LIBRARY_PATH=/usr/local/lib
  export LD_LIBRARY_PATH
in etc/hobbitcgi.cfg
I submitted a problem earlier about it not compiling
with LDAP.. I figured out what the problem was,
it was sourcing ldap from /usr/lib verses /usr/local/lib.

I harded coded it in the ldap.sh
You could have run the configure script with --ldapinclude and --ldaplib
options.


Regards,
Henrik

list Henrik Størner · Fri, 3 Nov 2006 07:56:33 +0100 ·
quoted from Great Dilla
On Thu, Nov 02, 2006 at 03:04:06PM -0800, Great Dilla wrote:
if you want to skip adding things to library/linker variables like
LD_LIBRARY_PATH, you might want to run crle ( crle -u -v -i
/usr/local/lib:LIBRARY_DIR:LIBRARY_DIR ).. -v turns on verbose so you
know what is happening.
Thanks, I've added this to the "Hobbit Tips" doc.


Regards,
Henrik
list James Wade · Fri, 3 Nov 2006 09:10:11 -0600 ·
Henrik,

I used the -R option in the Makefile to get it working:

RRDLIBS = -L/usr/local/rrdtool-1.0.49/lib -R/usr/local/rrdtool-1.0.49/lib
-lrrd -L/usr/local/lib -R/usr/local/lib -lpng

PCRELIBS = -L/usr/local/lib -R/usr/local/lib -lpcre

SSLLIBS = -L/usr/local/ssl/lib -R/usr/local/ssl/lib -lssl -lcrypto

I also had problems compling LDAP. For that I removed all the
entries in the build/ldap.sh file that tried to source where the
ldap libraries were and I implicitly put it in:

echo "Checking for LDAP ..."

        LDAPLIB="/usr/local/lib"
        LDAPINC="/usr/local/include"
        #
        if test -f $LDAPLIB/liblber.a
        then
                LDAPLBER=-llber
        fi
        if test -f $LDAPLIB/liblber.so
        then
                LDAPLBER=-llber
        fi

Even if I used the --ldapinclude DIRECTORY or
the --ldaplib DIRECTORY when running configure.server
LDAP would still not compile correctly until I just
did the fix action above.

The problem was that it was sourcing the Solaris 9 ldap
version in /usr/lib, /usr/include until I hard coded
it. The Solaris 9 version doesn't have some of the headers
in ldap.h that test-ldap.c needs; you have to either load
the solaris freeware version of openldap or compile it
and install it in /usr/local, then change the ldap.sh file
as above.

Thanks...James
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Friday, November 03, 2006 12:57 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Hobbit on Solaris Working

On Thu, Nov 02, 2006 at 03:04:06PM -0800, Great Dilla wrote:
if you want to skip adding things to library/linker variables like
LD_LIBRARY_PATH, you might want to run crle ( crle -u -v -i
/usr/local/lib:LIBRARY_DIR:LIBRARY_DIR ).. -v turns on verbose so you
know what is happening.
Thanks, I've added this to the "Hobbit Tips" doc.


Regards,
Henrik
list Asif Iqbal · Fri, 3 Nov 2006 10:14:11 -0500 ·
quoted from James Wade
On 11/3/06, James Wade <user-659655b2ea05@xymon.invalid> wrote:
Henrik,

I used the -R option in the Makefile to get it working:
This is by far the best approach over playing w/ crle and/or
LD_LIBRARY_PATH in Solaris environment
quoted from James Wade

RRDLIBS = -L/usr/local/rrdtool-1.0.49/lib -R/usr/local/rrdtool-1.0.49/lib
-lrrd -L/usr/local/lib -R/usr/local/lib -lpng

PCRELIBS = -L/usr/local/lib -R/usr/local/lib -lpcre

SSLLIBS = -L/usr/local/ssl/lib -R/usr/local/ssl/lib -lssl -lcrypto

I also had problems compling LDAP. For that I removed all the
entries in the build/ldap.sh file that tried to source where the
ldap libraries were and I implicitly put it in:

echo "Checking for LDAP ..."

        LDAPLIB="/usr/local/lib"
        LDAPINC="/usr/local/include"
        #
        if test -f $LDAPLIB/liblber.a
        then
                LDAPLBER=-llber
        fi
        if test -f $LDAPLIB/liblber.so
        then
                LDAPLBER=-llber
        fi

Even if I used the --ldapinclude DIRECTORY or
the --ldaplib DIRECTORY when running configure.server
LDAP would still not compile correctly until I just
did the fix action above.

The problem was that it was sourcing the Solaris 9 ldap
version in /usr/lib, /usr/include until I hard coded
it. The Solaris 9 version doesn't have some of the headers
in ldap.h that test-ldap.c needs; you have to either load
the solaris freeware version of openldap or compile it
and install it in /usr/local, then change the ldap.sh file
as above.

Thanks...James

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Friday, November 03, 2006 12:57 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Hobbit on Solaris Working

On Thu, Nov 02, 2006 at 03:04:06PM -0800, Great Dilla wrote:
if you want to skip adding things to library/linker variables like
LD_LIBRARY_PATH, you might want to run crle ( crle -u -v -i
/usr/local/lib:LIBRARY_DIR:LIBRARY_DIR ).. -v turns on verbose so you
know what is happening.
Thanks, I've added this to the "Hobbit Tips" doc.


Regards,
Henrik

-- 

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu