NET-SNMP Agent Extension

This is a discussion on NET-SNMP Agent Extension within the SNMP Coders forums, part of the Networking and Network Related category; hi, I'm trying to monitor the hardware of HP PRoLiant DL380 servers with FreeBSD. For that I'm using ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-18-2006
timon
 
Posts: n/a
Default NET-SNMP Agent Extension

hi,
I'm trying to monitor the hardware of HP PRoLiant DL380 servers with FreeBSD.
For that I'm using NEt-SNMP -the only one that runs on FreeBSD for that
purposes.The problem is that Net-SNMP does NOT include the branch "compaq"
under the branch iso.org.dod.internet.private.enterprises, that is requiered
by the Net-SNMP agent in order to request information about the HP server.

...I'm using the the mib files from:

http://www.nagiosexchange.org/typo3...gins-cpq.tar.gz

...convert them in .c and .h files with mib2c
>>>> env MIBS=ALL mib2c -c /usr/local/share/snmp/mib2c.scalar.conf -i compaq

.....reconfigureing the Net-SNMP instalation with the new modul:
>>>./configure --with-mib-modules=compaq

....and when I do the make, I am getting that:

-su-2.05b# make
gcc -E -Iinclude -I./include -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS -DBINDIR=/usr/local/bin -x
c ./sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/
*#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
echo 's#DATADIR#/usr/local/share#g' >> sedscript
echo 's#LIBDIR#/usr/local/lib#g' >> sedscript
echo 's#BINDIR#/usr/local/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#/usr/local/etc#g' >> sedscript
/usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in /root/net-snmp-5.3.1/snmplib
making all in /root/net-snmp-5.3.1/agent
making all in /root/net-snmp-5.3.1/agent/helpers
making all in /root/net-snmp-5.3.1/agent/mibgroup
/bin/sh ../../libtool --mode=compile
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g -O2 -Dfreebsd5 -c -o
compaq.lo compaq.c
rm -f .libs/compaq.lo
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g -O2 -Dfreebsd5 -c
compaq.c -fPIC -DPIC -o .libs/compaq.lo
compaq.c: In function `handle_cpqCmcThresholdMaxVoltage':
compaq.c:3859: error: syntax error before ',' token
compaq.c:3879: error: syntax error before ')' token
compaq.c:3882: error: break statement not within loop or switch
compaq.c:3884: error: case label not within a switch statement
compaq.c:3888: error: break statement not within loop or switch
compaq.c:3890: error: case label not within a switch statement
compaq.c:3892: error: syntax error before ')' token
*** Error code 1

Stop in /root/net-snmp-5.3.1/agent/mibgroup.
*** Error code 1

Stop in /root/net-snmp-5.3.1/agent.
*** Error code 1

Stop in /root/net-snmp-5.3.1.

Any suggestion how to deal with that ? ..other way to extend the NEt-SNMP
agent with compaq mibs support?
10x

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0