Adapting UCD proc MIB to support regex

Douglas Hubler <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CALAkb6deFPyTBmXSDWp_YowYW-fvfiCsmTO2q+b857hPSDq7ag@mail.gmail.com>
I want to adapt the UCD MIB that find process by exact process name
and have it instead perform a regex on the command line
(/proc/pid/cmdline) using the PCRE library.  I was able to compile a
sample loadable module in net-snmp 5.7 and get snmpd to load it.
Before I get started, does anyone think this is a bad idea?  If it
turns out ok, I will submit changes to proc.c upstream to next release
of net-snmp if you are still interested in supporting the UCD MIBs.

Also, I was able to get net-snmp 5.7 to compile on Fedora 14 and I
assume CentOS 6 using src RPM from
 http://koji.fedoraproject.org/koji/packageinfo?packageID=137
I just have to add back in a /etc/init.d/snmpd file, seems to work
fine and small tweak to spec file.  Again I ask if anyone thinks this
is a bad idea.  I have to use RPMs only.

Thanks for great project, happy with it so far!

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.