about nlmLogVariableTable and nlmLogVariable*Val OIDs
Hi, I've successfully set snmpd and snmptrapd to work together using NOTIFICATION-LOG-MIB support : $ snmptrap -e 0x81020304 localhost 0 linkUp.0 ifIndex i 4 ifAdminStatus i 1 ifOperStatus i 2 /( /var/log/syslog ) ... Sep 30 16:03:04 localhost snmptrapd[26264]: 2009-09-30 16:03:04 localhost [UDP: [127.0.0.1]:60500]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (0) 0:00:00.00^ISNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkUp.0^IIF-MIB::ifIndex = INTEGER: 4^IIF-MIB::ifAdminStatus = INTEGER: up(1)^IIF-MIB::ifOperStatus = INTEGER: down(2) ... \---8<---8<---8<---8<---8<--- And when I'm walking nlmLogTable : $ snmpwalk -n snmptrapd localhost nlmLogTable NOTIFICATION-LOG-MIB::nlmLogTime."default".1 = Timeticks: (417) 0:00:04.17 NOTIFICATION-LOG-MIB::nlmLogDateAndTime."default".1 = STRING: 2009-9-30,16:3:4.0,+2:0 NOTIFICATION-LOG-MIB::nlmLogEngineID."default".1 = Hex-STRING: 80 00 00 00 01 02 03 04 NOTIFICATION-LOG-MIB::nlmLogEngineTAddress."default".1 = Hex-STRING: 01 00 00 7F 54 EC NOTIFICATION-LOG-MIB::nlmLogEngineTDomain."default".1 = OID: SNMPv2-TM::snmpUDPDomain NOTIFICATION-LOG-MIB::nlmLogContextEngineID."default".1 = Hex-STRING: 80 00 1F 88 80 9C 94 EA 40 18 65 C3 4A NOTIFICATION-LOG-MIB::nlmLogContextName."default".1 = STRING: NOTIFICATION-LOG-MIB::nlmLogNotificationID."default".1 = OID: IF-MIB::linkUp.0 nlmLogVariableIndex is defined as an index then as a colum. This attached patch remove the second declaration. After applying this patch : $ snmpwalk -n snmptrapd localhost nlmLog NOTIFICATION-LOG-MIB::nlmLogTime."default".1 = Timeticks: (5896) 0:00:58.96 NOTIFICATION-LOG-MIB::nlmLogDateAndTime."default".1 = STRING: 2009-9-30,18:30:54.0,+2:0 NOTIFICATION-LOG-MIB::nlmLogEngineID."default".1 = Hex-STRING: 80 00 1F 88 80 43 D4 05 45 76 36 C2 4A NOTIFICATION-LOG-MIB::nlmLogEngineTAddress."default".1 = Hex-STRING: 01 00 00 7F 45 92 NOTIFICATION-LOG-MIB::nlmLogEngineTDomain."default".1 = OID: SNMPv2-TM::snmpUDPDomain NOTIFICATION-LOG-MIB::nlmLogContextEngineID."default".1 = Hex-STRING: 80 00 1F 88 80 43 D4 05 45 76 36 C2 4A NOTIFICATION-LOG-MIB::nlmLogContextName."default".1 = STRING: NOTIFICATION-LOG-MIB::nlmLogNotificationID."default".1 = OID: IF-MIB::linkUp.0 NOTIFICATION-LOG-MIB::nlmLogVariableID."default".1.1 = OID: DISMAN-EVENT-MIB::sysUpTimeInstance NOTIFICATION-LOG-MIB::nlmLogVariableID."default".1.2 = OID: IF-MIB::ifIndex NOTIFICATION-LOG-MIB::nlmLogVariableID."default".1.3 = OID: IF-MIB::ifAdminStatus NOTIFICATION-LOG-MIB::nlmLogVariableID."default".1.4 = OID: IF-MIB::ifOperStatus NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".1.1 = INTEGER: timeTicks(3) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".1.2 = INTEGER: integer32(4) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".1.3 = INTEGER: integer32(4) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".1.4 = INTEGER: integer32(4) I'm getting more OID in nlmLogVariableTable : - nlmLogVariableID ; - nlmLogVariableValueType. But, no OID like : - nlmLogVariableTimeTicksVal (6) ; - nlmLogVariableInteger32Val (7) ; - nlmLogVariableOctetStringVal (8). Be enabling DEBUG mode using notification_mog, I'm getting theses following messages whan receiving incoming INFORM : Oct 22 09:39:28 admin4 snmptrapd[3288]: 2009-10-22 09:39:28 localhost [UDP: [127.0.0.1]:52894]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (0) 0:00:00.00^ISNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkUp.0^IIF-MIB::ifIndex = INTEGER: 4^IIF-MIB::ifDescr = STRING: eth0^IIF-MIB::ifOperStatus = INTEGER: testing(3) notification_log: logging something notification_log: adding a row to the variables table. Name: 6. Type: 67. Value: 165287512. Len: 4 notification_log: adding a row to the variables table. Name: 7. Type: 2. Value: 165288696. Len: 4 notification_log: adding a row to the variables table. Name: 8. Type: 4. Value: 165289288. Len: 4 notification_log: adding a row to the variables table. Name: 7. Type: 2. Value: 165289880. Len: 4 You need to modify again notification_log.c : --- net-snmp-5.4.1.orig/agent/mibgroup/notification-log-mib/notification_log.c 2009-10-06 10:56:34.0 +0200 +++ net-snmp-5.4.1/agent/mibgroup/notification-log-mib/notification_log.c 2009-10-21 15:27:22.0 +0200 @@ -697,7 +688,8 @@ netsnmp_set_row_column(myrow, col, vptr->type, vptr->val.string, vptr->val_len); DEBUGMSGTL(("notification_log", -"adding a row to the variables table\n")); +"adding a row to the variables table. Name: %d. Type: %d. Value: %d. Len: %d\n", + col, vptr->type, vptr->val.string, vptr->val_len)); netsnmp_table_dataset_add_row(nlmLogVarTable, myrow); } } Why any nlmLogVariable*Val OIDs are empty ? Regards, --- net-snmp-5.4.1.orig/agent/mibgroup/notification-log-mib/notification_log.c 2007-03-13 0
Re: HOST-RESOURCE::hrSWInstalledTable
Le vendredi 05 février 2010 à 11:15 +, Dave Shield a écrit : > On 5 February 2010 00:00, Raphael SurcouF Bordet wrote: > > As I known, default support of host/hrswinstalled in Net-SNMP has been > > designed for RPM only. > > Where did you get that impression? > The hrSWInstalledTable includes support for RPM (Linux), pkginfo (Solaris), > depots (HP-UX) and software packages (FreeBSD) >The newer re-write in 5.5 also includes support for Mac OS X > > It has never been RPM-only. You should've right. There is a long time I haven't test other support. Regards, -- Raphaël 'SurcouF' Bordet -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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
Re: simple tool for generating SNMPv3 authkey & privkey
Le mardi 05 octobre 2010 à 18:12 +1100, Daniel Ng a écrit : > Hi, Hi, > I have a need to generate an authkey and privkey given a passphrase > and the authentication and encryption algos (ie. MD5/SHA, DES/AES). > > The resultant keys can just be printed to stdout. > > Does such a simple tool exist? If so, please point me to one. Did you've already tried snmpkey provided with Net::SNMP Perl module ? http://search.cpan.org/~dtown/Net-SNMP-5.2.0/snmpkey.PL Regards, -- Raphaël 'SurcouF' Bordet -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ 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
Re: Using Net-SNMP to monitor SWAP space
Le mardi 05 octobre 2010 à 22:15 -0700, Andrew Brill a écrit : > I have read the sections on using SWAP for monitoring swap space. I > just do not understand in plain howto language to make this work. Is > there anybody who can explain this in a much easier manner? > > I have traps enabled but it seems like there is some thing related to > DIS MAN MIB yet my net-snmp file makes no mention of DIS MAN MIB. > > So here's the information from the WIKI but it doesn't make sense to > me: > > swap MIN > monitors the amount of swap space available on the local > system. If this falls below the specified threshold (MIN kB), > then the memErrorSwap object will be set to 1, and a suitable > description message reported via memSwapErrorMsg. > > Note: > This situation will not automatically trigger a trap to report > the problem - see the DisMan Event MIB section later. > If this directive is not specified, the default threshold is 16 MB.And > then I see this information: > > > defaultMonitors yes > will configure the Event MIB tables to monitor the various > UCD-SNMP-MIB tables for problems (as indicated by the > appropriate xxErrFlag column objects). > > This is exactly equivalent to the configuration: > > monitor -o memErrorName -o memSwapErrorMsg "memory" memSwapError != 0 > > I have no idea what this means...please any help is greatly > appreciated. You've to define an internal SNMPv3 user (or Security Name) and specify this using iquerySecName before having Disman monitoring to work. This is this user which be used by snmpd to monitor defined OID by monitor directives. Somes examples here: http://net-snmp.sourceforge.net/docs/man/snmpd.examples.html#lbAV Regards, -- Raphaël 'SurcouF' Bordet -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ 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
Re: simple tool for generating SNMPv3 authkey & privkey
Le mercredi 06 octobre 2010 à 10:51 +1100, Daniel Ng a écrit : > >Did you've already tried snmpkey provided with Net::SNMP Perl module ? > > >http://search.cpan.org/~dtown/Net-SNMP-5.2.0/snmpkey.PL > > Fantastic! Thanks for your help Raphaël. You're welcome. I've a question : can you explain me your need about authkey and privkey ? Did you have an example ? What are advantages or drawbacks for using theses keys ? Thanks, -- Raphaël 'SurcouF' Bordet -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ 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
Re: how to get integer from "exec/extend" shell command?
Le lundi 08 novembre 2010 à 21:12 +0100, Ernest Beinrohr a écrit : > Hi, i have a simple script which always returns and integer, I have it > in my snmpd.conf as "exec test1 /bin/test.sh" and also as "extend > test1 /bin/test.sh". Unfortunately, none of there returns an integer > with the value from the script. Only a string. Is is somehow possible > to get an integer? Hi, This question was already queried this month by Angelo Höngens... The response is to use UCD-SNMP-MIB::extResult (for exec) or NET-SNMP-MIB::nsExtendResult (for extend) instead of UCD-SNMP-MIB::extOutput or NET-SNMP-MIB::nsExtendOutput1Line, respectively. Regards, -- Raphaël SurcouF -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ 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
Re: how to get integer from "exec/extend" shell command?
Le lundi 08 novembre 2010 à 21:57 +0100, Ernest Beinrohr a écrit : > On 08.11.2010 21:39, Raphaël 'SurcouF' Bordet wrote: > > Le lundi 08 novembre 2010 à 21:12 +0100, Ernest Beinrohr a écrit : > > > Hi, i have a simple script which always returns and integer, I have it > > > in my snmpd.conf as "exec test1 /bin/test.sh" and also as "extend > > > test1 /bin/test.sh". Unfortunately, none of there returns an integer > > > with the value from the script. Only a string. Is is somehow possible > > > to get an integer? > > Hi, > > > > This question was already queried this month by Angelo Höngens... > > The response is to use UCD-SNMP-MIB::extResult (for exec) or > > NET-SNMP-MIB::nsExtendResult (for extend) instead of > > UCD-SNMP-MIB::extOutput or NET-SNMP-MIB::nsExtendOutput1Line, > > respectively. > > Well, that does not really help, I've tried. My number is quite > large, > like bytes on and interface. Too big for return value. What are the command you need ? Can you provide an example ? exec/extend can be used to execute remote Nagios Plugins on remotes hosts. Regards, -- Raphaël 'SurcouF' Bordet -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ 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
Re: snmptrapd, pas de traphandle
Hi, Please speak english on this list not french. Since Net-SNMP 5.3, you have to setup authentification configuration to accept incoming SNMP trap and inform requests. I don't understand why you have configuration directives from snmpd.conf in your snmptrapd.conf file. According to snmptrapd.conf manual[1], you've to define: - disableAuthorization yes To disable the new access control. - authCommunity, authUser, authGroup or authAccess to define access rights, like this example: authCommunity log,execute public Bests regards, [1]: http://net-snmp.sourceforge.net/docs/man/snmptrapd.conf.html#lbAF Le lundi 24 janvier 2011 à 08:48 +0100, Victor D'Agostino a écrit : > Bonjour, > > Je tente de faire superviseur snmp sous Debian (Lenny) pour mon onduleur. > J'ai installé les packages snmp et snmpd (NET-SNMP 5.4.1) et j'ai fait la > configuration suivante avec snmpconf.pl essentielement : > > fichier /etc/snmp/snmp.conf > Code: > # snmp.conf > # Configuration du superviseur SNMP (snmpd) > > # SECTION: Debugging output options > > #dodebugging 0 > #dumppacket no > #notokenwarnings yes > > # SECTION: Output style options > > logtimestamp yes > printnumericenums 1 > printnumericoids no > dontbreakdownoids yes > escapequotes no > quickprinting yes > numerictimeticks yes > suffixprinting 1 > > # SECTION: Textual mib parsing > > mibdirs /etc/snmp/mibs:/usr/share/snmp/mibs > #mibdirs /etc/snmp/mibs > showmiberrors no > mibwarninglevel 2 > strictcommentterm 1 > miballowunderline no > mibreplacewithlatest no > > > # SECTION: Default Authentication Options > # port UDP, version de SNMP, groupe snmp pour ecriture > > defaultport 161 > defversion 1 > defcommunity perso > > > # Access Control > > # sec.name source community > com2sec paranoid default public > com2sec readonly default public > com2sec readwrite default askco > > #sec.model sec.name > group MyROSystem v1paranoid > group MyROSystem v2c paranoid > group MyROSystem usm paranoid > group MyROGroup v1 readonly > group MyROGroup v2creadonly > group MyROGroup usmreadonly > group MyRWGroup v1 readwrite > group MyRWGroup v2creadwrite > group MyRWGroup usmreadwrite > > # incl/excl subtree mask > view allincluded .1 80 > view system included .iso.org.dod.internet.mgmt.mib-2.system > > #context sec.model sec.level match read write notif > access MyROSystem "" any noauthexact system none none > access MyROGroup "" any noauthexact allnone none > access MyRWGroup "" any noauthexact allallnone > > > fichier /etc/snmp/snmptrapd.conf > Code: > # snmptrapd.conf: > # Gestion des messages d'alertes (trap) par le service > # de gestion des alertes (snmptrapd) > > # Runtime options > #pidfile /var/run/snmptrapd.pid > > # SECTION: Output formatting for traps received. > format2 %02.2l/%02.2m/%y %02.2h:%02.2j:%02.2k %W de %A\n > > # SECTION: Logging options > donotlogtraps no > logoption s 2 > logoption f /var/log/snmptrapd.log > outputoption S > printeventnumbers yes > > # SECTION: Trap Handlers / Traitement des alertes > > #traphandle " .oid" /chemin/programme "arguments" > traphandle default /usr/bin/eject > [b]# remarque : j'ai essayé avec divers OID, notament .1.*[/b] > > # SECTION: Authentication options > ignoreauthfailure no > > # Access Control > > # sec.name source community > com2sec paranoid default public > com2sec readonly default public > com2sec readwrite default perso > > #sec.model sec.name > group MyROSystem v1paranoid > group MyROSystem v2c paranoid > group MyROSystem usm paranoid > group MyROGroup v1 readonly > group MyROGroup v2creadonly > group MyROGroup usmreadonly > group MyRWGroup v1 readwrite > group MyRWGroup v2creadwrite > group MyRWGroup usmreadwrite > > # incl/excl subtree mask > view allincluded .1 80 > #view system included .iso.org.dod.internet.mgmt.mib-2 > > #context sec.model sec.level match read write notif > access MyROSystem "" any noauthexact none none none > access MyROGroup "" any noauthexact allnone none > access MyRWGroup "" any noauthexact allallnone > > > Le fichier /etc/snmp/snmpd.conf est vide car je ne veux pas d'agent snmp la > machine superviseur. > > Je lance le tout sans passer par inetd par les commandes suivantes : > Code: > #!/bin/bash > killall snmpd > killall snmptrapd > snmpd -d -c /etc/snmp/snmp.conf > snmptrapd -d -c /etc/snmp/snmptrapd.conf > > avec -d pour avoir le débug dans les logs
net-snmp 5.2.2 and LM-SENSORS-MIB on Solaris 9
Hi, I'm currently testing a custom package of net-snmp 5.2.2 (5.3.0.1 work fine but not ucd-snmp/lm-sensors module) with ucd-snmp/lm-sensors module compiled in and on solaris 2.9. I'm able to query snmpd for lmTempSensors but I can't understand the return value for lmTempSensorValues : $ snmpwalk -v 1 -c public localhost lmTempSensors LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 0 LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 1 LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 2 LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: mb_p0_t_core LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: mb_p1_t_core LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: mb_t_enc LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 3370341 LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 2780517 LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 1142117 ---8<--- According to LM-SENSORS-MIB, this value is exprimed in "mC". But I can't believe the temperature can be hotter than 100°C ! And, if I asked to prtdiag or prtpicl (I've a SunFire v210), theses tools are reporting 55, 46 and 19°C for theses sensors. # prtpicl -v -c temperature-sensor mb_p0_t_core (temperature-sensor, 44087e) :_fru_parent (440702H) :Label T_CORE :HighPowerOffThreshold 100 :HighShutdownThreshold 93 :HighWarningThreshold 88 :Temperature 55 :_classtemperature-sensor :name mb_p0_t_core mb_p1_t_core (temperature-sensor, 440886) :_fru_parent (44072fH) :Label T_CORE :HighPowerOffThreshold 100 :HighShutdownThreshold 93 :HighWarningThreshold 88 :Temperature 46 :_classtemperature-sensor :name mb_p1_t_core mb_t_enc (temperature-sensor, 44088e) :_fru_parent (4406e4H) :Label T_ENC :HighPowerOffThreshold 51 :HighShutdownThreshold 48 :HighWarningThreshold 40 :LowPowerOffThreshold -6 :LowShutdownThreshold -3 :LowWarningThreshold 5 :Temperature 19 :_classtemperature-sensor :name mb_t_enc ---8<--- Is anyone have already tested net-snmp and his module lm-sensors on solaris ? Regards, -- Raphaël 'SurcouF' Bordet <[EMAIL PROTECTED]> 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=lnk&kid=120709&bid=263057&dat=121642 ___ 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
Re: net-snmp 5.2.2 and LM-SENSORS-MIB on Solaris 9 [SOLVED]
Le samedi 08 juillet 2006 à 00:41 +0200, Raphaël 'SurcouF' Bordet a écrit : > Hi, > > I'm currently testing a custom package of net-snmp 5.2.2 (5.3.0.1 work > fine but not ucd-snmp/lm-sensors module) with ucd-snmp/lm-sensors module > compiled in and on solaris 2.9. > I'm able to query snmpd for lmTempSensors but I can't understand the > return value for lmTempSensorValues : > > $ snmpwalk -v 1 -c public localhost lmTempSensors > LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 0 > LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 1 > LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 2 > LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: mb_p0_t_core > LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: mb_p1_t_core > LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: mb_t_enc > LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 3370341 > LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 2780517 > LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 1142117 > ---8<--- > > According to LM-SENSORS-MIB, this value is exprimed in "mC". > But I can't believe the temperature can be hotter than 100°C ! > > And, if I asked to prtdiag or prtpicl (I've a SunFire v210), theses > tools are reporting 55, 46 and 17°C for theses sensors. Hi again, I've asked to an partner from SUN Microsystems and he was successfully converted theses values in 5 minutes only ! I'll try to explain his method (perhaps a corporate method) : First, if you convert values from net-snmp in "hexa", the two lasts octets are always "6D65". For "mb_t_enc", the conversion is "116D65". My partner suggest to soustract "6D65" from every values in decimal operation. In decimal base, "6D65" = 28005. The new value for "mb_t_enc" is now 1114112. Then, he has divided this new value by 65536 and we have : 1142117 - 28005 / 65536 = 17 Best regards, -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | surcouf at debianfr dot net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ 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
Re: /etc/default/snmpd configuration
Le jeudi 07 décembre 2006 à 22:11 +0100, Peter de Kraker a écrit : > Hello, > > I am a Ubuntu Edgy user and I am setting up snmpd on all my pc's and > servers. > I had a lot of trouble enabling remote snmp requests. I found out that > the default behaviour of the Ubuntu version of snmpd is that it binds > itself to 127.0.0.1 thus denying remote requests. > > The only way I could get it to work was to edit the /etc/default/snmpd > configuration line: > Default settings included: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I > -smux -p /var/run/snmpd.pid 127.0.0.1' > Changing the 127.0.0.1 to 0.0.0.0 solved my problem. > > I really think this is an ugly hack, but I am not skilled enough to > conclude that this hardcoded setting cannot be overruled by a option in > /etc/snmp/snmpd.conf > I tried "agentaddress udp:161" and "agentaddress > udp:161,tcp:161,udp6:161,tcp6:161" but these gave server errors. This isn't an ugly hack. This options file has been designed to be modified by local administrator. > Could somebody with more knowledge of snmpd configuration stuff tell me > if this hardcoded /etc/default/snmpd config file is indeed different > from the standard configuration of snmpd? Is this line indeed causing > the binding to only 127.0.0.1 instead of the default behaviour to bind > to all interfaces? Can it be overruled with an option in > /etc/snmp/snmpd.conf? This file is specific to Debian distribution. Ubuntu is based on Debian. Many services has been packaged with default configuration options file support into theses distributions. This is a way to modify startup options without alter init script directly. > I will file a bugreport on Ubuntu if it only can be solved by editing > the /etc/default/snmpd file. First I need some confirmation on the subject. On Ubuntu, most services has been designed to listen localhost only by default. I don't think you "bug" will be solved. You always have to modify /etc/default/snmpd if default options doesn't match yours needs. Regards, -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | JID: surcouf at debianfr dot net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ 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
Re: SNMP V3 Trap
Le jeudi 07 décembre 2006 à 21:39 +0530, Srivastava, Namburi (IE10) a écrit : > Hi, Hi, > I am able to generate SNMP V1 traps, but am not successful in doing > the same with SNMPV3. You've to use "trapsess" directive into your snmpd.conf file. You must specify destination port: I've discover it's 161 by default ! Which version of net-snmp are you using ? Regards, -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | JID: surcouf at debianfr dot net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ 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
Re: How to get information on NFS server and file system of HDD
> Hello, > >I am sorry to bother you again. I log-in the unix workstation remotely > and using net-snmp comman, I would like to obtain > > 1) information on NFS server You can try the nfsstats[1] project, it's an AgentX extension for Net-SNMP which use procfs te get statistics about NFS service. > 2) file system of HDD The implementation of HOST-RESSOURCES-MIB by snmpd can be used to find informations about files systems. Regards, [1]: http://www.macdee.net/perl/nfsstats/ -- Raphaël 'SurcouF' Bordet <[EMAIL PROTECTED]> - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ 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
Re: Monitoring CPU Load and Disk on Windows
Le mercredi 31 janvier 2007 à 12:30 +0800, jiang jilin a écrit : > Hi, > according to what you said,the snmpd looks working well,so,I suspect > you didn't building the host module,you know,it's included in > Unix-like System by default,but I don't know whether it's included in > Windows .the first thing you should do is to essure the snmpd has > included the host module. > > I'm sorry for my little knowledge about net-snmp under Windows. Hi, You can ask to agent for configure options like this (this example is running using Ubuntu Linux) : $ snmpwalk -v 1 -c public localhost versionConfigureOptions UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: "'--prefix=/usr' '--sysconfdir=/etc' '--mandir=/usr/share/man' '--with-persistent-directory=/var/lib/snmp' '--enable-ucd-snmp-compatibility' '--enable-shared' '--with-cflags=-O2 -D_REENTRANT' '--with-perl-modules=INSTALLDIRS=vendor' '--enable-ipv6' '--with-logfile=none' '--without-rpm' '--with-libwrap' '--with-openssl' '--without-dmalloc' '--without-efence' '--without-rsaref' '--with-sys-contact=root' '--with-sys-location=Unknown' '--with-mib-modules=host smux agentx disman/event-mib ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/lmSensors' '--enable-mfd-rewrites' '--with-defaults'" Regards, -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | JID: surcouf at debianfr dot net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ 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
Re: Monitoring CPU Load and Disk on Windows
> On 31/01/07, jiang jilin <[EMAIL PROTECTED]> wrote: >> But the command you give doesn't satisfy Fahmy Ahmad,in my view. > > Why not? > > You'd said that you weren't sure whether a Windows snmpd > would inclde support for the Host Resources module. > Raphael suggested a way of finding this out. > > That sounds a perfectly reasonable followup to your reply. > Care to expand on why you think it's not relevant? I've tried using net-snmp 5.3.1 under Windows XPSP2 and this OID return an empty string. Jiang may have right. -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | JID: surcouf at debianfr dot net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ 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
Re: Net-snmp 5.3.1 trouble sending v3 trap
Le jeudi 15 février 2007 à 15:10 -0800, Stephen Yu a écrit : > I am using net-snmp 5.3.1. The agent cannot send out v3 trap. Using > '-Lf /tmp/snmp.out', it shows entries: > > Snmpd: send_trap: USM unknown security name (no such user exists) > > My snmpd.conf: > > trapsess -v3 -lauthNoPriv -uuser3 -aMD5 -Apassword3 destination> Do you have tried to specify destination port ? > rouser user3 auth Which access directives have you set ? -- Raphaël 'SurcouF' Bordet [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ 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