Re: [Xen-users] SNMP AgentX subagent for Xen

Started by Brian A. Seklecki (Mobile)almost 18 years ago3 messagesgeneral
Jump to latest
#1Brian A. Seklecki (Mobile)
bseklecki@collaborativefusion.com

On Mon, 2008-06-02 at 09:10 +0200, Alain Barthe wrote:

2008/5/31 Brian A. Seklecki (Mobile)
<bseklecki@collaborativefusion.com>:
There should be a AgentX sub-agent for Xen that feeds Net-SNMP
~BAS

We can work on one. The Net-SNMP folks have a great AgentX API I hear.

I also need to write one for PostgreSQL. CC'ing various parties.

With PgSQL its easy to write a POSTGRESQL-MIB -- you just transclude the
pg_catalog and information_schema schemas in template1 into SNMP tables.

With Xen we'd have to look at how a Net-SNMP daemon running in DOM0
could read the specs from "xm info" (/proc maybe)

Sounds like a fun project.

~BAS

Do you know where one can find it ? I googled a lot without seeing
anything.

Thanks.

On Wed, 2008-05-28 at 15:49 +0200, Alain Barthe wrote:

Hello all,

Does anyone know if it exists a xen specific SNMP agent ?
My need is to collect through SNMP, from a dom0,

informations related

to running domUs and more generally all xen related stuff.

Thanks for answers.

Alain Barthe.

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

IMPORTANT: This message contains confidential information and
is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your
system.

--
Brian A. Seklecki <bseklecki@collaborativefusion.com>
Collaborative Fusion, Inc.

#2Brian A. Seklecki (Mobile)
bseklecki@collaborativefusion.com
In reply to: Brian A. Seklecki (Mobile) (#1)

On Mon, 2008-06-02 at 13:53 +0100, Dave Shield wrote:

2008/6/2 Brian A. Seklecki <bseklecki@collaborativefusion.com>:

<bseklecki@collaborativefusion.com>:
There should be a AgentX sub-agent for Xen that feeds Net-SNMP
~BAS

With Xen we'd have to look at how a Net-SNMP daemon running in DOM0
could read the specs from "xm info" (/proc maybe)

The first task is probably to confirm exactly what information would
need to be made available. What does the output of "xm info" look like?

http://linux.die.net/man/1/xm

"xm list" would likely be an SNMP table:

"An example format for the list is as follows:

Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 98 1 r----- 5068.6
Fedora3 164 128 1 r----- 7.6
Fedora4 165 128 1 ------ 0.6
Mandrake2006 166 128 1 -b---- 3.6
Mandrake10.2 167 128 1 ------ 2.5
Suse9.2 168 100 1 ------ 1.8"

Where as "xm info" would likely be simple OIDs:

"Sample xen domain info looks as follows (lines wrapped manually to make
the man page more readable):

host : talon
release : 2.6.12.6-xen0
version : #1 Mon Nov 14 14:26:26 EST 2005
machine : i686
nr_cpus : 2
nr_nodes : 1
sockets_per_node : 2
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 696
hw_caps : 0383fbff:00000000:00000000:00000040
total_memory : 767
free_memory : 37
xen_major : 3
xen_minor : 0
xen_extra : -devel
xen_caps : xen-3.0-x86_32
xen_pagesize : 4096
platform_params : virt_start=0xfc000000
xen_changeset : Mon Nov 14 18:13:38 2005 +0100
7793:090e44133d40
cc_compiler : gcc version 3.4.3 (Mandrakelinux
10.2 3.4.3-7mdk)
cc_compile_by : sdague
cc_compile_domain : (none)
cc_compile_date : Mon Nov 14 14:16:48 EST 2005
xend_config_format : 2

Does this cover everything you would normally need to know?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

--
Brian A. Seklecki <bseklecki@collaborativefusion.com>
Collaborative Fusion, Inc.

#3Brian A. Seklecki
lavalamp@spiritual-machines.org
In reply to: Brian A. Seklecki (Mobile) (#1)

On Mon, 2008-06-02 at 15:05 +0200, Alain Barthe wrote:

Sounds like a fun project.
I agree.

With PostgreSQL, a the agent can simply daemonize and talk to the
Postmaster using libpq and proper HBA. Everything in pg_catalog.* and
information_schema.* is already quantified in SQL data structures:

postgres=# \d pg_catalog.pg_tables;
View "pg_catalog.pg_tables"

Column | Type | Modifiers
-------------+---------+-----------
schemaname | name |
tablename | name |
tableowner | name |
tablespace | name |
hasindexes | boolean |
hasrules | boolean |
hastriggers | boolean |

postgres=# SELECT * from pg_catalog.pg_database limit 2;
datname | datdba | encoding | datistemplate | datallowconn | datconnlimit | datlastsysoid | datfrozenxid | dattablespace | datconfig | datacl
----------+--------+----------+---------------+--------------+--------------+---------------+--------------+---------------+-----------+--------
postgres | 10 | 0 | f | t | -1 | 10818 | 34352041 | 1663 | |
nagios | 17056 | 0 | f | t | -1 | 10818 | 34352146 | 1663 | |
(2 rows)

~BAS

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users