Gerasimos Kouris | 24 Apr 13:36 2015
Picon

Support of hash SHA256 from NetSnmp

Hello snmp users,

I am trying to set up an snmpv3 user on snmpd.conf that will respond to v3 requests.

My question concerns the encryption cyphers.
As far as I understand AES ciphers stronger than 128bits are not supported by NetSnmp.
If I set encryption cipher to AES will that default to AES128?? Or I should clarify it as AES128??


How about hash SHA2? Does NetSnmp support hash SHA256?
If yes, on which version and how could I set it?


Regards
Gerry
<!-- .ExternalClass .ecxhmmessage P { padding:0px; } .ExternalClass body.ecxhmmessage { font-size:12pt; font-family:Calibri; } -->
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
James McGuire | 20 Apr 14:38 2015

How to configure sending traps

Hi there,

 

I've been trying to configure net-snmp to send a trap when the disk utilisation on any mount point reaches a certain threshold, say 80% of total capacity.

I've read the documentation here:

https://access.redhat.com/documentation ... eving.html

but when I attempt to review the available parameters in HOST-RESOURCES-MIB::hrStorage by issuing the following command, I get an error suggesting the table is not recognised:

> snmptable -Cb localhost HOST-RESOURCES-MIB::hrStorage
Was that a table? HOST-RESOURCES-MIB::hrStorage

Can anyone advise how I go about doing this with a 'monitor' statement inside of /etc/snmp/snmpd.conf? I also read the wiki here:

http://www.net-snmp.org/wiki/index.php/ ... Monitoring

But although there is a subsection on disk montioring, there is no related content to explain how to do this!

Eventually I need to get traps working for:

 

·         memory utilisation (send trap when memory utilisation > 80%)

·         cpu load averages (send trap when 5 minute load average is >= 100%)

·         process not running (send trap when httpd is no longer running).

·         Disk utilisation (send trap when any mount point is utilised > 80%)

 

Would appreciate some advice on how to do this as information online appears to be surprisingly scant and I'd expect this would be a very common requirement?

Many thanks,

 

James

====
Versions:

CentOS Linux release 7.1.1503 (Core)

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
net-snmp.x86_64 1:5.7.2-20.el7 <at> 0-base
net-snmp-agent-libs.x86_64 1:5.7.2-20.el7 <at> 0-base
net-snmp-libs.x86_64 1:5.7.2-20.el7 <at> 0-base
net-snmp-utils.x86_64 1:5.7.2-20.el7 <at> 0-base
Available Packages
net-snmp-agent-libs.i686 1:5.7.2-20.el7 0-base
net-snmp-devel.i686 1:5.7.2-20.el7 0-base
net-snmp-devel.x86_64 1:5.7.2-20.el7 0-base
net-snmp-gui.x86_64 1:5.7.2-20.el7 0-base
net-snmp-libs.i686 1:5.7.2-20.el7 0-base
net-snmp-perl.x86_64 1:5.7.2-20.el7 0-base
net-snmp-python.x86_64 1:5.7.2-20.el7 0-base
net-snmp-sysvinit.x86_64 1:5.7.2-20.el7 0-base


James McGuire
Infrastructure Support Engineer

redcentric
business technology. managed

Support: 0345 120 7070 or +44 1189 711582 from abroad
Email: james.mcguire <at> redcentricplc.com
Website: www.redcentricplc.com
Blog: www.redcentricplc.com/blog

Redcentric, Central House, Beckwith Knowle, Harrogate, HG3 1UG.
Main Switchboard: 01423 85 00 00
 


 


DISCLAIMER:
This message is intended only for the use of the person(s) ("the intended recipient(s)") to whom it is addressed.
It may contain information which is privileged, proprietary and/or confidential within the meaning of applicable law.
If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this message (including any attachments) is strictly prohibited.
If you have received this message in error, please contact the sender of this message as soon as possible.
The views or opinions expressed in this message are those of the author and may not necessarily be the views held by Redcentric.

Redcentric Solutions Limited trading as Redcentric. Registered office: Central House, Beckwith Knowle, Harrogate, HG3 1UG.
Registered in England no. 08322856.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Purnendu | 20 Apr 07:11 2015
Picon

snmpd crashed upon reload

Hello all,


Thanks for your continuous support.

 

I am facing an issue with snmpd crashing upon snmpd reload.

 

I could avoid this issue by modifying the reload function

in snmpd and use reloadproc instead of killproc

 

reload(){

        echo -n $"Reloading $prog: "

#        killproc /usr/sbin/snmpd -HUP

#        RETVAL=$?

#        echo

#        return $RETVAL

         reloadproc /usr/sbin/snmpd

         return 0

 

}

 

 

However I am still not able to understand the issue with the

previous code. I have copied a snap of strace log below.

 

write(85, "Connection from <UNKNOWN> (Local IPC: /tmp/local-agent)\n", 56) = 56

gettimeofday({946692039, 25235}, NULL)  = 0

send(92, "<174>Jan  1 02:00:39 snmpd[17582]: Connection from <UNKNOWN> (Local IPC: /tmp/local-agent)\n", 91, MSG_NOSIGNAL) = 91

clock_gettime(CLOCK_MONOTONIC, {9359, 707021863}) = 0

--- SIGSEGV (Segmentation fault) <at> 0 (0) -

 

My environment :

Target: Linux  2.6.34.10-WR4.3.0.0_standard #2 PREEMPT armv7l armv7l armv7l GNU/Linux
Host: Linux  2.6.32-38-server #83-Ubuntu SMP on x86_64 GNU/Linux
OS: Windriver 4.4.1

NetSNMP Version: :5.4


Best Regards,

Purnendu Ghosh

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
bh cm | 17 Apr 07:13 2015
Picon

Host load monitoring

Hi.

I'm trying to configure net-snmp so that it raises SNMP traps when system load goes above a certain threshold. My configuration is at http://pastebin.com/ZZBRN2bh

I've created some load on the system using stress-ng, but no traps are being generated. Any suggestions please? I'm using version 5.5 on RHEL.

Any help would be much appreciated.

best regards,
John.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Taylor, Ben | 9 Apr 16:52 2015
Picon

Same error building net-snmp-5.7.3 or net-snmp-code-0a139e9348589884ae03858ee82c807c8362d079 on Solaris 10 X86/Sparc

 

I’ve been building net-snmp for my company’s Solaris servers for the last 5 years, so started with 5.4.2.1 and up through 5.7.2 with my custom patch for psinfo since the default 5.7.2 borks the process table viewing in EM7 monitoring.

 

I have a script that basically does all the same things, so I don’t forget how I’ve built it.  The little tricks like munging up the Makefiles after the configure to add an –R<lib> to the linker commands so I don’t have to futz with crle or an LD_LIBRARY_PATH.

 

With both net-snmp-5.7.3 and net-snmp-code-0a139e9348589884ae03858ee82c807c8362d079, I’m seeing the same error on both Sparc and X86.  With and without –enable-ipv6.

 

./configure --with-mib-modules=smux,ucd-snmp/lmSensors,if-mib,tcp-mib,udp-mib,mibII/mta_sendmail,ucd-snmp/diskio --enable-mfd-rewrites --with-openssl=/usr/sfw --with-default-snmp-version=3 --with-sys-contact=<user> --with-sys-location=<LOC>  --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp --enable-ipv6

 

Here is the configure-summary.  I just noticed the MIB Module warning, but am not clear on how I fix that.

 

  SNMP Versions Supported:    1 2c 3

  Building for:               solaris2

  Net-SNMP Version:           5.8.dev

  Network transport support:  Callback Unix Alias TCP UDP TCPIPv6 UDPIPv6 IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPv6Base

  SNMPv3 Security Modules:     usm

  *** MIB Module warning *** mib module 'if-mib/ifTable/ifTable' excludes module 'mibII/interfaces' but another module requires it

  *** MIB Module warning *** mib module 'if-mib/ifXTable/ifXTable' excludes module 'mibII/interfaces' but another module requires it

  *** MIB Module warning *** mib module 'mibII/interfaces' excludes module 'if-mib/ifTable/ifTable' but another module requires it

  *** MIB Module warning *** mib module 'if-mib/ifTable/ifTable_interface' excludes module 'mibII/interfaces' but another module requires it

  *** MIB Module warning *** mib module 'if-mib/ifXTable/ifXTable_interface' excludes module 'mibII/interfaces' but another module requires it

  Agent MIB code:            default_modules if-mib mibII/mta_sendmail smux tcp-mib ucd-snmp/diskio ucd-snmp/lmSensors udp-mib =>  snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities if-mib/ifTable if-mib/ifXTable smux/smux tcp-mib/tcpConnectionTable tcp-mib/tcpListenerTable util_funcs/header_simple_table util_funcs/header_simple_table udp-mib/udpEndpointTable

  MYSQL Trap Logging:         unavailable

  Embedded Perl support:      disabled

  SNMP Perl modules:          disabled

  SNMP Python modules:        disabled

  Crypto support from:        crypto

  Authentication support:     MD5 SHA1

  Encryption support:         DES AES

  Local DNSSEC validation:    disabled

 

Ideas?

 

Thanks,

 

Ben

 

Here is the error I’m seeing:

 

libtool: compile:  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/usr/sfw/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -c kernel_sunos5.c -o kernel_sunos5.o >/dev/null 2>&1

/bin/bash ../../libtool  --mode=compile gcc -I../../include -I. -I../../agent -I../../agent/mibgroup  -I../../snmplib -I/usr/sfw/include   -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -c -o mibII/interfaces.lo mibII/interfaces.c

libtool: compile:  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/usr/sfw/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -c mibII/interfaces.c  -fPIC -DPIC -o mibII/.libs/interfaces.o

mibII/interfaces.c:214: error: `var_interfaces' undeclared here (not in a function)

mibII/interfaces.c:214: error: initializer element is not constant

mibII/interfaces.c:214: error: (near initialization for `interfaces_variables[0].findVar')

mibII/interfaces.c:214: error: initializer element is not constant

mibII/interfaces.c:214: error: (near initialization for `interfaces_variables[0].name')

mibII/interfaces.c:214: error: initializer element is not constant

mibII/interfaces.c:214: error: (near initialization for `interfaces_variables[0]')

mibII/interfaces.c:216: error: `var_ifEntry' undeclared here (not in a function)

mibII/interfaces.c:216: error: initializer element is not constant

mibII/interfaces.c:216: error: (near initialization for `interfaces_variables[1].findVar')

mibII/interfaces.c:216: error: initializer element is not constant

mibII/interfaces.c:216: error: (near initialization for `interfaces_variables[1].name')

mibII/interfaces.c:216: error: initializer element is not constant

mibII/interfaces.c:216: error: (near initialization for `interfaces_variables[1]')

mibII/interfaces.c:218: error: initializer element is not constant

mibII/interfaces.c:218: error: (near initialization for `interfaces_variables[2].findVar')

mibII/interfaces.c:218: error: initializer element is not constant

mibII/interfaces.c:218: error: (near initialization for `interfaces_variables[2].name')

mibII/interfaces.c:218: error: initializer element is not constant

mibII/interfaces.c:218: error: (near initialization for `interfaces_variables[2]')

mibII/interfaces.c:220: error: initializer element is not constant

mibII/interfaces.c:220: error: (near initialization for `interfaces_variables[3].findVar')

mibII/interfaces.c:220: error: initializer element is not constant

mibII/interfaces.c:220: error: (near initialization for `interfaces_variables[3].name')

mibII/interfaces.c:220: error: initializer element is not constant

mibII/interfaces.c:220: error: (near initialization for `interfaces_variables[3]')

mibII/interfaces.c:222: error: initializer element is not constant

mibII/interfaces.c:222: error: (near initialization for `interfaces_variables[4].findVar')

mibII/interfaces.c:222: error: initializer element is not constant

mibII/interfaces.c:222: error: (near initialization for `interfaces_variables[4].name')

mibII/interfaces.c:222: error: initializer element is not constant

mibII/interfaces.c:222: error: (near initialization for `interfaces_variables[4]')

mibII/interfaces.c:224: error: initializer element is not constant

mibII/interfaces.c:224: error: (near initialization for `interfaces_variables[5].findVar')

mibII/interfaces.c:224: error: initializer element is not constant

mibII/interfaces.c:224: error: (near initialization for `interfaces_variables[5].name')

mibII/interfaces.c:224: error: initializer element is not constant

mibII/interfaces.c:224: error: (near initialization for `interfaces_variables[5]')

mibII/interfaces.c:226: error: initializer element is not constant

mibII/interfaces.c:226: error: (near initialization for `interfaces_variables[6].findVar')

mibII/interfaces.c:226: error: initializer element is not constant

mibII/interfaces.c:226: error: (near initialization for `interfaces_variables[6].name')

mibII/interfaces.c:226: error: initializer element is not constant

mibII/interfaces.c:226: error: (near initialization for `interfaces_variables[6]')

mibII/interfaces.c:233: error: initializer element is not constant

mibII/interfaces.c:233: error: (near initialization for `interfaces_variables[7].findVar')

mibII/interfaces.c:233: error: initializer element is not constant

mibII/interfaces.c:233: error: (near initialization for `interfaces_variables[7].name')

mibII/interfaces.c:233: error: initializer element is not constant

mibII/interfaces.c:233: error: (near initialization for `interfaces_variables[7]')

mibII/interfaces.c:240: error: initializer element is not constant

mibII/interfaces.c:240: error: (near initialization for `interfaces_variables[8].findVar')

mibII/interfaces.c:240: error: initializer element is not constant

mibII/interfaces.c:240: error: (near initialization for `interfaces_variables[8].name')

mibII/interfaces.c:240: error: initializer element is not constant

mibII/interfaces.c:240: error: (near initialization for `interfaces_variables[8]')

mibII/interfaces.c:242: error: initializer element is not constant

mibII/interfaces.c:242: error: (near initialization for `interfaces_variables[9].findVar')

mibII/interfaces.c:242: error: initializer element is not constant

mibII/interfaces.c:242: error: (near initialization for `interfaces_variables[9].name')

mibII/interfaces.c:242: error: initializer element is not constant

mibII/interfaces.c:242: error: (near initialization for `interfaces_variables[9]')

mibII/interfaces.c:244: error: initializer element is not constant

mibII/interfaces.c:244: error: (near initialization for `interfaces_variables[10].findVar')

mibII/interfaces.c:244: error: initializer element is not constant

mibII/interfaces.c:244: error: (near initialization for `interfaces_variables[10].name')

mibII/interfaces.c:244: error: initializer element is not constant

mibII/interfaces.c:244: error: (near initialization for `interfaces_variables[10]')

mibII/interfaces.c:246: error: initializer element is not constant

mibII/interfaces.c:246: error: (near initialization for `interfaces_variables[11].findVar')

mibII/interfaces.c:246: error: initializer element is not constant

mibII/interfaces.c:246: error: (near initialization for `interfaces_variables[11].name')

mibII/interfaces.c:246: error: initializer element is not constant

mibII/interfaces.c:246: error: (near initialization for `interfaces_variables[11]')

mibII/interfaces.c:248: error: initializer element is not constant

mibII/interfaces.c:248: error: (near initialization for `interfaces_variables[12].findVar')

mibII/interfaces.c:248: error: initializer element is not constant

mibII/interfaces.c:248: error: (near initialization for `interfaces_variables[12].name')

mibII/interfaces.c:248: error: initializer element is not constant

mibII/interfaces.c:248: error: (near initialization for `interfaces_variables[12]')

mibII/interfaces.c:250: error: initializer element is not constant

mibII/interfaces.c:250: error: (near initialization for `interfaces_variables[13].findVar')

mibII/interfaces.c:250: error: initializer element is not constant

mibII/interfaces.c:250: error: (near initialization for `interfaces_variables[13].name')

mibII/interfaces.c:250: error: initializer element is not constant

mibII/interfaces.c:250: error: (near initialization for `interfaces_variables[13]')

mibII/interfaces.c:252: error: initializer element is not constant

mibII/interfaces.c:252: error: (near initialization for `interfaces_variables[14].findVar')

mibII/interfaces.c:252: error: initializer element is not constant

mibII/interfaces.c:252: error: (near initialization for `interfaces_variables[14].name')

mibII/interfaces.c:252: error: initializer element is not constant

mibII/interfaces.c:252: error: (near initialization for `interfaces_variables[14]')

mibII/interfaces.c:254: error: initializer element is not constant

mibII/interfaces.c:254: error: (near initialization for `interfaces_variables[15].findVar')

mibII/interfaces.c:254: error: initializer element is not constant

mibII/interfaces.c:254: error: (near initialization for `interfaces_variables[15].name')

mibII/interfaces.c:254: error: initializer element is not constant

mibII/interfaces.c:254: error: (near initialization for `interfaces_variables[15]')

mibII/interfaces.c:256: error: initializer element is not constant

mibII/interfaces.c:256: error: (near initialization for `interfaces_variables[16].findVar')

mibII/interfaces.c:256: error: initializer element is not constant

mibII/interfaces.c:256: error: (near initialization for `interfaces_variables[16].name')

mibII/interfaces.c:256: error: initializer element is not constant

mibII/interfaces.c:256: error: (near initialization for `interfaces_variables[16]')

mibII/interfaces.c:258: error: initializer element is not constant

mibII/interfaces.c:258: error: (near initialization for `interfaces_variables[17].findVar')

mibII/interfaces.c:258: error: initializer element is not constant

mibII/interfaces.c:258: error: (near initialization for `interfaces_variables[17].name')

mibII/interfaces.c:258: error: initializer element is not constant

mibII/interfaces.c:258: error: (near initialization for `interfaces_variables[17]')

mibII/interfaces.c:260: error: initializer element is not constant

mibII/interfaces.c:260: error: (near initialization for `interfaces_variables[18].findVar')

mibII/interfaces.c:260: error: initializer element is not constant

mibII/interfaces.c:260: error: (near initialization for `interfaces_variables[18].name')

mibII/interfaces.c:260: error: initializer element is not constant

mibII/interfaces.c:260: error: (near initialization for `interfaces_variables[18]')

mibII/interfaces.c:262: error: initializer element is not constant

mibII/interfaces.c:262: error: (near initialization for `interfaces_variables[19].findVar')

mibII/interfaces.c:262: error: initializer element is not constant

mibII/interfaces.c:262: error: (near initialization for `interfaces_variables[19].name')

mibII/interfaces.c:262: error: initializer element is not constant

mibII/interfaces.c:262: error: (near initialization for `interfaces_variables[19]')

mibII/interfaces.c:264: error: initializer element is not constant

mibII/interfaces.c:264: error: (near initialization for `interfaces_variables[20].findVar')

mibII/interfaces.c:264: error: initializer element is not constant

mibII/interfaces.c:264: error: (near initialization for `interfaces_variables[20].name')

mibII/interfaces.c:264: error: initializer element is not constant

mibII/interfaces.c:264: error: (near initialization for `interfaces_variables[20]')

mibII/interfaces.c:266: error: initializer element is not constant

mibII/interfaces.c:266: error: (near initialization for `interfaces_variables[21].findVar')

mibII/interfaces.c:266: error: initializer element is not constant

mibII/interfaces.c:266: error: (near initialization for `interfaces_variables[21].name')

mibII/interfaces.c:266: error: initializer element is not constant

mibII/interfaces.c:266: error: (near initialization for `interfaces_variables[21]')

mibII/interfaces.c:268: error: initializer element is not constant

mibII/interfaces.c:268: error: (near initialization for `interfaces_variables[22].findVar')

mibII/interfaces.c:268: error: initializer element is not constant

mibII/interfaces.c:268: error: (near initialization for `interfaces_variables[22].name')

mibII/interfaces.c:268: error: initializer element is not constant

mibII/interfaces.c:268: error: (near initialization for `interfaces_variables[22]')

mibII/interfaces.c: In function `header_ifEntry':

mibII/interfaces.c:373: warning: implicit declaration of function `Interface_Scan_Get_Count'

make[2]: *** [mibII/interfaces.lo] Error 1

make[2]: Leaving directory `/opt/software/src/ben/work/net-snmp-code-0a139e9348589884ae03858ee82c807c8362d079/agent/mibgroup'

make[1]: *** [subdirs] Error 1

make[1]: Leaving directory `/opt/software/src/ben/work/net-snmp-code-0a139e9348589884ae03858ee82c807c8362d079/agent'

make: *** [subdirs] Error 1

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Pushpa Thimmaiah | 8 Apr 17:15 2015
Picon

ACK of snmp informs

Hi Folks,

How to confirm whether  SNMPv3 informs reached destination(NMS) or not.
SNMPv3 informs are called as acknowledged trap. Can this acks be captured ?

Thanks,
Pushpa
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
yuvaraj r | 3 Apr 12:06 2015
Picon

snmpwalk issue

Hi,

I have two tables sample 1 and sample 2 in my subagent. Both tables are getting updated in different time periods.

If  i use snmpwalk for table sample 1 during table sample 2 is getting updating, I am seeing crash in my subagent.

During the crash, control does not come reached sample 1 table handler function.  But actually table sample 1 and sample 2 is not at all related to each.

I dont see crash, if i don't update the tables.

I feel, crash is happening inside of snmp subagent libraries.

Can help me to find the root cause for my crash issue.

Regards,
Addu
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Kantor, Tomas | 2 Apr 11:06 2015

SNMPv3 SSH - failed rfc5343 contextEngineID probing

Hello

I am trying SNMPv3 SSH transport accordind this tutorial

http://www.net-snmp.org/wiki/index.php/SSH

 

Unfortunately I got this error:

failed rfc5343 contextEngineID probing

 

Does anybody know, what I missed? What is wrong?

 

/opt/shared/adl-net-snmp/bin/snmpstatus -m all -M mibs -r1 -Dssh,tsm,trans ssh:localhost:22

registered debug token ssh, 1

registered debug token tsm, 1

registered debug token trans, 1

tsm: registering ourselves

tsm:  returned 0

ssh/config: parsing socket info: 664 kantort games

ssh/config: socket permissions: 664 (436)

ssh/config: socket owner: kantort (5932)

ssh/config: socket group: games (20)

ssh: Fingerprint: d83dc61281c7fa8958d7a6ca821524d1

Authentication methods: publickey,gssapi-keyex,gssapi-with-mic,password

        Authentication by public key succeeded.

Opened connection.

tsm: TSM: Reached our session initialization callback

tsm: Starting TSM processing

tsm: TSM processing completed.

transport:send: 70 bytes to SSH: [127.0.0.1]:22

ssh: at the top of ssh_recv

ssh: t=0x10beb20

ssh: addr_pair=0x10c1110

ssh: t=0x10beb20, addr_pair=0x10c1110, channel=0x10d4200

ssh: recv fd 3 got 0 bytes

ssh: close fd 3

failed rfc5343 contextEngineID probing

snmpstatus: Session abort failure

 

 

Thanks

Tomas

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Troy Lea | 2 Apr 01:15 2015
Picon

snmptrapd and reverse DNS lookups

I've been troubleshooting a problem for a customer for a while now where it takes about 4-5 hours for a trap received by snmptrapd to be placed into the snmptt spool folder.

Today I think I've identified that DNS lookups are the cause of the delay. I've compared an strace from a test box against the one with problems. This is what sticks out:

connect(10, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0

Once I saw 8.8.8.8 I knew straight away this is a Google DNS server. Yep I know that's not a great idea.


My question is, how many times does snmptrapd attempt to perform the DNS lookup?

Due to the size of the customers server I'm not going to leave an strace running for 4-5 hours to work this out.

I do understand I can run snmptrapd with the -n argument to stop it attempting to translate source addresses of incoming packets into hostnames OR I just get the customer to stop using and external DNS server.

But that still makes me think, how many times does snmptrapd attempt to perform the DNS lookup?

Is this number of lookups something that can be defined to prevent this going on for 4-5 hours?


Thanks in advance for any answers.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Henry Collins | 30 Mar 11:37 2015
Picon

Windows NET-SNMP doesn't load all MIBs

Hello NET-SNMP community,

I am using NET-SNMP both on Linux and Windows machines. It works great on Linux and I can see a lot of information about network, cpu usage, performance, memory usage. However, it is not the same on my Windows machines. I can see a lot of information about network, but nothing about cpu, memory usage, performance. 

I tried to add the following line to c:/usr/etc/snmp/snmp.conf: mibs +all
But it doesn't do anything. I did restart NET-SNMP service and nothing has changed. 

This is my whole snmp.conf file:

mibdirs C:/usr/share/snmp/mibs
persistentDir C:/usr/snmp/persist
tempFilePattern C:/usr/temp/snmpdXXXXXX
mibs +all

As I said, it does work on Linux. This is my snmpd.conf file:

###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser my_ro_user priv 






###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
#   The following check up on various aspects of a host.

# proc: Check for processes that should be running.
#     proc NAME [MAX=0] [MIN=0]
#   
#     NAME:  the name of the process to check for.  It must match
#            exactly (ie, http will not find httpd processes).
#     MAX:   the maximum number allowed to be running.  Defaults to 0.
#     MIN:   the minimum number to be running.  Defaults to 0.
#   
#   The results are reported in the prTable section of the UCD-SNMP-MIB tree
#   Special Case:  When the min and max numbers are both 0, it assumes
#   you want a max of infinity and a min of 1.

proc    0

# disk: Check for disk space usage of a partition.
#   The agent can check the amount of available disk space, and make
#   sure it is above a set limit.  
#   
#    disk PATH [MIN=100000]
#   
#    PATH:  mount path to the disk in question.
#    MIN:   Disks with space below this value will have the Mib's errorFlag set.
#           Can be a raw integer value (units of kB) or a percentage followed by the %
#           symbol.  Default value = 100000.
#   
#   The results are reported in the dskTable section of the UCD-SNMP-MIB tree

disk  c 






###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact  

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 76



###########################################################################
# SECTION: Trap Destinations
#
#   Here we define who the agent will send traps to.

# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]

informsink  SNMP-mgmt  

# trapcommunity: Default trap sink community to use
#   arguments: community-string

trapcommunity  my_ro_user

# authtrapenable: Should we send traps when authentication failures occur
#   arguments: 1 | 2   (1 = yes, 2 = no)

authtrapenable  1


How do I make my Windows agents to report information about CPU, memory usage and so on like Linux does?

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
jagan | 28 Mar 08:46 2015
Picon

SNMP not working properly. Timeout: No Response from localhost on RHEL

Hi,

We are facing some typical issue with SNMP. we are running the below "snmpwalk" command. but sometimes it is running and sometimes it is getting Timeout error.
"snmpwalk -v 1 -c public localhost system"
We have tried the latest nety-snmp rpms.

our snmpd.conf file is very simple.
cat /etc/snmp/snmpd.conf
rocommunity public
rwcommunity public

 

can anyone please help in troubleshooting the issue.

 

Thanks & Regards,

Jagan

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Gmane