Xymon Mailing List Archive search

Access to Xymon data via library functions?

6 messages in this thread

list Martin Ward · Mon, 30 Mar 2009 07:43:35 +0100 ·
Henrik/All,

I have spent the last few days writing a Perl script that reads through the /hostdata/ files, extracts interface information for each server that I monitor and writes/updates a MySQL database.

I now want to extract other information from the same file which brings up the question: Is there any sort of library of functions that I could compile into a C program to make access to this data any easier?

I have had a poke through the sources for Xymon 4.2.2 but can't find what I need 8-(

|\/|artin
--
Martin W. Ward
Manager, Technical Assistance
COLT
Unit 12, Powergate Business Park
Volt Avenue, Park Royal, London
NW10 6PW, United Kingdom

Tel: + 44 (0)20 7863 5218 Internal: 8 441 5218
Fax: + 44 (0)20 7863 5610
Email: user-2d33a6eb6a05@xymon.invalid
www.colt.net

Data | Voice | Managed Services



*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.

The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies.

Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.

No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.

Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
list Buchan Milne · Mon, 30 Mar 2009 12:52:27 +0200 ·
quoted from Martin Ward
On Monday 30 March 2009 08:43:35 Ward, Martin wrote:
Henrik/All,
I have spent the last few days writing a Perl script that reads through the
/hostdata/ files, extracts interface information for each server that I
monitor and writes/updates a MySQL database. I now want to extract other
information from the same file which brings up the question: Is there any
sort of library of functions that I could compile into a C program to make
access to this data any easier? I have had a poke through the sources for
Xymon 4.2.2 but can't find what I need 8-(
Actually, I was thinking about this, as it would be useful to be able to access some configuration information in (e.g.) perl. Ideally, if there were a shared library for Hobbit/Xymon that included the functions for reading configuration, events, data, it could be exposed to scripting languages as well.

Regards,
Buchan
list Dan McDonald · Mon, 30 Mar 2009 08:28:15 -0500 ·
quoted from Buchan Milne
On Mon, 2009-03-30 at 12:52 +0200, Buchan Milne wrote:
On Monday 30 March 2009 08:43:35 Ward, Martin wrote:
Henrik/All,
I have spent the last few days writing a Perl script that reads through the
/hostdata/ files, extracts interface information for each server that I
monitor and writes/updates a MySQL database. I now want to extract other
information from the same file which brings up the question: Is there any
sort of library of functions that I could compile into a C program to make
access to this data any easier? I have had a poke through the sources for
Xymon 4.2.2 but can't find what I need 8-(
Actually, I was thinking about this, as it would be useful to be able to access some configuration information in (e.g.) perl. Ideally, if there were a shared library for Hobbit/Xymon that included the functions for reading configuration, events, data, it could be exposed to scripting languages as well.
bb localhost "hobbitdxboard..." ??


-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com
list Harald Husemann · Mon, 30 Mar 2009 17:56:56 +0200 ·
Hi,

for Perl, there is a library called "Hobbit_fd_lib". I found it along with dbcheck.pl, which we use for database checking - I don't know if it's only a part of dbcheck, or a stand-alone lib. Nevertheless, it seems to be useful (although I never used it in my own scripts, since these were all ported from old-style BB).
Another possible solution could be bbhostshow or bbhostgrep, or the already mentioned hobbit dashboard.

Btw.: Nice idea to have the hobbit config in a database, I've also thought about this...

hh
quoted from Dan McDonald

McDonald, Dan schrieb:
On Mon, 2009-03-30 at 12:52 +0200, Buchan Milne wrote:
On Monday 30 March 2009 08:43:35 Ward, Martin wrote:
Henrik/All,
I have spent the last few days writing a Perl script that reads through the
/hostdata/ files, extracts interface information for each server that I
monitor and writes/updates a MySQL database. I now want to extract other
information from the same file which brings up the question: Is there any
sort of library of functions that I could compile into a C program to make
access to this data any easier? I have had a poke through the sources for
Xymon 4.2.2 but can't find what I need 8-(
Actually, I was thinking about this, as it would be useful to be able to access some configuration information in (e.g.) perl. Ideally, if there were a shared library for Hobbit/Xymon that included the functions for reading configuration, events, data, it could be exposed to scripting languages as well.
bb localhost "hobbitdxboard..." ??

-- 

Harald Husemann
Netzwerk- und Systemadministrator
Operation Management Center (OMC)
MATERNA GmbH
Information & Communications

Westfalendamm 98
44141 Dortmund

Geschäftsführer: Dr. Winfried Materna, Helmut an de Meulen, Ralph Hartwig
Amtsgericht Dortmund HRB 5839

Tel: +XX XXX XXXX XXX
Fax: +XX XXX XXXX XXX
www.annyway.com <http://www.annyway.com/>;
www.materna.com <http://www.materna.com/>;
list Buchan Milne · Tue, 31 Mar 2009 08:49:49 +0200 ·
quoted from Harald Husemann
On Monday 30 March 2009 15:28:15 McDonald, Dan wrote:
On Mon, 2009-03-30 at 12:52 +0200, Buchan Milne wrote:
On Monday 30 March 2009 08:43:35 Ward, Martin wrote:
Henrik/All,
I have spent the last few days writing a Perl script that reads through
the /hostdata/ files, extracts interface information for each server
that I monitor and writes/updates a MySQL database. I now want to
extract other information from the same file which brings up the
question: Is there any sort of library of functions that I could
compile into a C program to make access to this data any easier? I have
had a poke through the sources for Xymon 4.2.2 but can't find what I
need 8-(
Actually, I was thinking about this, as it would be useful to be able to
access some configuration information in (e.g.) perl. Ideally, if there
were a shared library for Hobbit/Xymon that included the functions for
reading configuration, events, data, it could be exposed to scripting
languages as well.
bb localhost "hobbitdxboard..." ??
But, I want:
1)Page layout information (without writing a separate parser which may not 
operate identically)
2)Thresholds
3)"Critical View" configuration
4)Client-local configuration for more client-side tests
list Ulric Eriksson · Tue, 31 Mar 2009 09:10:22 +0200 (CEST) ·
quoted from Buchan Milne

On Tue, 31 Mar 2009, Buchan Milne wrote:
But, I want:
1)Page layout information (without writing a separate parser which may not
operate identically)
2)Thresholds
3)"Critical View" configuration
4)Client-local configuration for more client-side tests
All of which could be added to the hobbit protocol.

Ulric