Snmp

I’m not sure if this has been discussed before, but is there any plan
on having RT support SNMP variables?

like a snmp mib for total number of open ticket, total number of tickets,
etc?

thanks.

–darrin

Wow. That’s the first time anyone’s ever asked for that. It’s not something
that’s anywhere on the todo list, though if you’re interested in writing the
code, I’d be happy to take an snmp mib and server into contrib. If you’re
interested in having me build it, we should talk off-list.

    Thanks,

    JesseOn Wed, Aug 15, 2001 at 12:12:43AM +0000, Darrin Walton wrote:

I’m not sure if this has been discussed before, but is there any plan
on having RT support SNMP variables?

like a snmp mib for total number of open ticket, total number of tickets,
etc?

thanks.

–darrin


Rt-devel mailing list
Rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

They’ll take my private key when they pry it from my cold dead fingers!

|+ Wow. That’s the first time anyone’s ever asked for that. It’s not something
|+ that’s anywhere on the todo list, though if you’re interested in writing the
|+ code, I’d be happy to take an snmp mib and server into contrib. If you’re
|+ interested in having me build it, we should talk off-list.

its been awhile since i’ve written snmp mibs, but i’ll hack around a bit
later this week (probably on my flight to europe).

-darrin

“j” == jesse jesse@fsck.com writes:

j> Wow. That’s the first time anyone’s ever asked for that. It’s not something
j> that’s anywhere on the todo list, though if you’re interested in writing the
j> code, I’d be happy to take an snmp mib and server into contrib. If you’re
j> interested in having me build it, we should talk off-list.

It should be a pretty easy thing to build. Assuming you were to tie
it into ucb-snmpd (aka net-snmpd), all you really need is a script
that runs the SQL query to do various counts and print that number to
stdout. Then in the snmpd.conf, just add an “exec” MIB that runs your
sql query program.

|+ It should be a pretty easy thing to build. Assuming you were to tie
|+ it into ucb-snmpd (aka net-snmpd), all you really need is a script
|+ that runs the SQL query to do various counts and print that number to
|+ stdout. Then in the snmpd.conf, just add an “exec” MIB that runs your
|+ sql query program.

That is what I was going to do. I’ve already built the MIB, yet to test
if it compiled.

I was only going to do TotalTickets, and TotalOpenTickets. If others have
ideas as to anything else, i’d be happy to hear them.

–darrin

“DW” == Darrin Walton darrinw@nixc.net writes:

DW> I was only going to do TotalTickets, and TotalOpenTickets. If others have
DW> ideas as to anything else, i’d be happy to hear them.

Would TotalOpenTickets mean those which are not in “resolved” status
or just those that have “open” status? I think you should include
“new” and perhaps “stalled” tickets in your open counter.

that runs the SQL query to do various counts and print that number to

Don’t do that. Its a nasty abstraction violation thats likely to bite
you in the ass one day. You would be better off with a script that uses
the RT and RT:: to determine various information. The API should
be less likely to change then then raw structure of the DB. Also a perk,
you get some cross-db compatibility for free.

-Matt

I promised this awhile ago, but things have been very hetic at work, and
in life in general. But, as promise, here is the SNMP code I put
together for RT. Its written in C, and requires the net-snmp package to
be installed.

–Darrin

rt-snmp-1.1.tar.gz (21.3 KB)