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
Tim Culhane | 25 Mar 14:43 2015
Picon

setting of values for mteHotContextName mteHotTargetName in notifications from net-snmp

Hi,

I attempted to contact "hardaker" at his sourceforge address regarding this
question, as I believe he was involved in the original implementation of the
DISMAN-EVENT-MIB in net-snmp, but I haven't received any response. Hoping
others on this list might be able to help.

I have searched online for answers but am unable to find any details.

I am configuring a notification in net-snmp by way of the monitor directive.

The entries in my snmpd.conf file are as follows:

iquerySecName timculhane
rouser timculhane
trap2sink 10.128.19.86 public
monitor -r 30 messageQueueIsZero razorgateSCMessagesQueued > 0

the user timculhane is already created.

When the notification is fired I get a response like the below in snmptrapd:

2015-03-19 08:23:49 devcrown28.es.cpth.ie [UDP:
[10.128.19.86]:51285->[10.128.19.86]:162]: sysUpTimeInstance =

Timeticks: (21) 0:00:00.21  snmpTrapOID.0 = OID: mteTriggerFired

mteHotTrigger.0 = STRING: messageQueueIsGreaterZero
mteHotTargetName.0 = STRING:
mteHotContextName.0 = STRING:   

mteHotOID.0 = OID: razorgateSCMessagesQueued."10.128.19.86"     

mteHotValue.0 = INTEGER: 1

As you can see the following fields have no values:

mteHotTargetName.0 = STRING:
mteHotContextName.0 = STRING: 

I've been unable to find out what these fields are supposed to be used for.
I have read the entries in the DISMAN-EVENT-MIB file, but it isn't really
any
clearer:

mteHotTargetName OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"The SNMP Target MIB's snmpTargetAddrName related to the notification."
::= { dismanEventMIBNotificationObjects 2 }

mteHotContextName OBJECT-TYPE
SYNTAX SnmpAdminString
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION
"The context name related to the notification. This MUST be as
fully-qualified as possible, including filling in wildcard information
determined in processing."
::= { dismanEventMIBNotificationObjects 3 }

Is it possible for values to be added to these fields? Ideally I would like
to add additional information on the notification and thought that the
targetName
and context might be the place to do it.

What is the snmpTargetAddrName referred to? What contexts are being referred
to?

If you could provide any additional information on the purpose and use of
these fields I would appreciate it.

Many thanks,

Tim

------------------------------------------------------------------------------
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

Thomas Andrews | 25 Mar 07:24 2015
Picon

Making trap2sink non-static

Hi,

I need to be able to change the trap sink IP address dynamically. 
Currently it is in /etc/snmp/snmpd.conf:

     trap2sink 192.168.2.1 public

I understand that I can possibly update the config file and then make 
snmpd re-read it but I would prefer something a bit more "elegant" if 
possible. Any suggestions?

Many thanks,
Thomas

------------------------------------------------------------------------------
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 | 25 Mar 04:21 2015
Picon

Clarification on logOption in snmptrapd.conf

I've been playing with the logOption directive for snmptrapd.conf.

When I specify it this way:

logOption f /var/log/snmptrapd.log

I do get traps logged in this file.

However what level of logging is this? Is it just LOG_NOTICE?

Reading the MAN page:

http://www.net-snmp.org/docs/man/snmpcmd.html

Normal output is (or will be!) logged at a priority level of LOG_NOTICE


But this text seems to follow after the uppercase F option which is for specifying priorities.

"For -LF and -LS the priority specification comes before the file or facility token"

So I've tried this:

logOption F d /var/log/snmptrapd.log
or
logOption F 7 /var/log/snmptrapd.log

Which still logs in /var/log/messages.

logOption Fd /var/log/snmptrapd.log
or
logOption F7 /var/log/snmptrapd.log
or
logOption F 0-7 /var/log/snmptrapd.log

Which still logs in /var/log/messages.

logOption F d/var/log/snmptrapd.log
or
logOption F 7/var/log/snmptrapd.log

Which still logs in /var/log/messages.

logOption F pd /var/log/snmptrapd.log
or
logOption F p7 /var/log/snmptrapd.log

Results in "Starting snmptrapd: invalid priority: p"

logOption d F /var/log/snmptrapd.log
or
logOption 7 F /var/log/snmptrapd.log

Results in "Starting snmptrapd: Unknown logging option passed to -L: d." or "Starting snmptrapd: Unknown logging option passed to -L: 7."


So I am pretty confused.

My goal is to have debug logging to a separate file.
I also want to be able to specify it in the snmptrapd.conf file.


Thanks in advance for all replies.


------------------------------------------------------------------------------
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
GAN QUAN A | 23 Mar 08:00 2015
Picon

Is there anyone active in this mail list?

Dear all

 

Looking forward to your kind feedback.

 

 

Regards!

 

Gan Quan

 

From: GAN QUAN A
Sent: 2015
319 11:33
To: 'Net-snmp-users <at> lists.sourceforge.net'
Subject: [Agent Design] Unknown Error when testing the entPhysicalTable in ENTITY MIB

 

Dear all,

 

Thanks for your attention.

 

I wrote some code to deploy the entPhysicalTable of ENTITY MIB, and passed the compilation.

 

But when testing it with snmptable command, no response is received and I see the following error in snmpd trace:

 

======

2015-03-18 19:13:48 snmp_build: unknown failure

2015-03-18 19:13:48 trace: _sess_async_send(): snmp_api.c, 4925:

2015-03-18 19:13:48 sess_async_send: encoding failure

2015-03-18 19:13:48 send response: Error building ASN.1 representation (build objid: bad first subidentifier)

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalDescr.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalVendorType.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalContainedIn.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalClass.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalParentRelPos.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalName.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalHardwareRev.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalFirmwareRev.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalSoftwareRev.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalSerialNum.1

======

 

Details are in attachment.

 

I’ve no idea after investigating the issue for a week, and tries to get help from you.

 

 

Looking forward to your kind feedback.

 

 

Kind Regards!

 

Gan Quan

Attachment (entPhysicalTable_c_h.zip): application/x-zip-compressed, 6169 bytes
Attachment (log4.zip): application/x-zip-compressed, 73 KiB
------------------------------------------------------------------------------
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
nikhi.karnati | 19 Mar 20:30 2015
Picon

You have a new notification from nikhi.karnati <at> gmail.com. View??

Click here to discover nikhi.karnati <at> gmail.com's favorite websites!
New Notification
You have a new notification from
nikhi.karnati <at> gmail.com
View? No
Click here to unsubscribe from such emails from nikhi.karnati <at> gmail.com or all friends


P.O. Box 70215, Plaza Station , Sunnyvale, CA 94086
------------------------------------------------------------------------------
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
GAN QUAN A | 19 Mar 04:32 2015
Picon

[Agent Design] Unknown Error when testing the entPhysicalTable in ENTITY MIB

Dear all,

 

Thanks for your attention.

 

I wrote some code to deploy the entPhysicalTable of ENTITY MIB, and passed the compilation.

 

But when testing it with snmptable command, no response is received and I see the following error in snmpd trace:

 

======

2015-03-18 19:13:48 snmp_build: unknown failure

2015-03-18 19:13:48 trace: _sess_async_send(): snmp_api.c, 4925:

2015-03-18 19:13:48 sess_async_send: encoding failure

2015-03-18 19:13:48 send response: Error building ASN.1 representation (build objid: bad first subidentifier)

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalDescr.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalVendorType.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalContainedIn.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalClass.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalParentRelPos.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalName.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalHardwareRev.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalFirmwareRev.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalSoftwareRev.1

2015-03-18 19:13:48     -- ENTITY-MIB::entPhysicalSerialNum.1

======

 

Details are in attachment.

 

I’ve no idea after investigating the issue for a week, and tries to get help from you.

 

 

Looking forward to your kind feedback.

 

 

Kind Regards!

 

Gan Quan

Attachment (entPhysicalTable_c_h.zip): application/x-zip-compressed, 6169 bytes
Attachment (log4.zip): application/x-zip-compressed, 73 KiB
------------------------------------------------------------------------------
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
Jeff Sadowski | 18 Mar 20:12 2015
Picon

get passtest example working

I am looking at the passtest example in the default config file and
wanted to get that working
I found the passtest file in /usr/share/doc/net-snmp/passtest
I copied it to /scripts/passtest.sh

I noticed PLACE=".1.3.6.1.4.1.8072.2.255"
in the file
I edited /etc/snmp/snmpd.conf and added the line

pass .1.3.6.1.4.1.8072.2.255 /bin/sh /scripts/passtest.sh

like the example but with the .1.3.6.1.4.1.8072.2.255 in place of
.1.3.6.1.4.1.2021.255
I restarted snmpd
then I ran

snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.8072.2.255

I got

End of MIB

I expected something similar to

# enterprises.ucdavis.255.1 = "life the universe and everything"
# enterprises.ucdavis.255.2.1 = 42
# enterprises.ucdavis.255.2.2 = OID: 42.42.42
# enterprises.ucdavis.255.3 = Timeticks: (363136200) 42 days, 0:42:42
# enterprises.ucdavis.255.4 = IpAddress: 127.0.0.1
# enterprises.ucdavis.255.5 = 42
# enterprises.ucdavis.255.6 = Gauge: 42

What am I doing wrong?

------------------------------------------------------------------------------
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

Tim Culhane | 18 Mar 13:17 2015
Picon

smilint returns error: failed to locate MIB module `UCD-SNMP-MIB'

Hi,

Apologies for cross posting:

I want to generate a notification in which the current date and time is
included as a field value.

The object versionCDate in the UCD-SNMP-MIB mib will return the current date
and time based on a call to ctime.

I have created a notification-type object in my mib file, see attached which
includes versionCDate as one of its objects.

I have included UCD-SNMP-MIB in my list of imports at the top of the mib
file so that ucdavis is included.

However, when I run smilint I get the error:

./OWM--rg-mib:7: failed to locate MIB module `UCD-SNMP-MIB-rg-mib:7: failed
to locate MIB module `UCD-SNMP-MIB'
./OWM-rg-mib:66: unknown object identifier label `versionCDate'
./OWM-rg-mib:65: object `versionCDate' of notification
`razorgateSmtpStatusCountersNotification' must be a scalar or column

The UCD-SNMP-MIB.txt file is definitely present in the same directory
under/usr/local/share/snmp/mibs.

Interestingly enough smilint also reports an error for the UCD-SNMP-MIB as
in:

./UCD-SNMP-MIB.txt:1111: index element `mrIndex' of row `mrEntry' should but
cannot have a size restriction

But I'm not sure if this is a cause of why UCD-SNMP-MIB can't be found by my
mib file.

Anybody know how I can fix this or in some other way include the current
date and time in my notification payload?

Thanks,

Tim
Attachment (OWM-rg-mib): application/octet-stream, 2442 bytes
------------------------------------------------------------------------------
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
Jeff Sadowski | 17 Mar 21:10 2015
Picon

Custom global snmp responses help

Can snmpd give custom responses to a non authenticated client?

I would like it when I do

snmpgetnext -v1 -On -c public 127.0.0.1 1.3.6.1.4.1.2699.1.2

that I get

.1.3.6.1.4.1.2699.1.2.1.1.1.0 = STRING: "en-US"

as a response.

I have read the manual but it is unclear to me how to implement this

I tried adding

"extend .1.3.6.1.4.1.2699.1.2.1.1.1.0 lang /scripts/response.sh lang"

to the /etc/snmp/snmpd.conf and restarting snmpd

and created /scripts/response.sh
to reply with en-US with the lang argument

but snmpd still responds with

Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2699.1.2

here is my /etc/snmp/snmpd.conf

com2sec notConfigUser  default       public
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1
access  notConfigGroup ""      any       noauth    exact  systemview none none
view all    included  .1                               80
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root <at> localhost> (configure /etc/snmp/snmp.local.conf)
dontLogTCPWrappersConnects yes
extend .1.3.6.1.4.1.2699.1.2.1.1.1.0 lang /scripts/response.sh lang

------------------------------------------------------------------------------
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

David.Worth | 17 Mar 16:47 2015

Net-SNMP 5.5 64Bit but 32bit counters

Hi,

We are in the process of rolling out a new RHEL 6.6 environment.  Part of configuration is snmp monitoring as
well as stats collection.  I noticed that our checks are failing due to negative numbers on memTotalReal. 
The servers have 1.2 TB of memory and from what I understand the counters are 32bit.  So that seems to be the
error we are getting.  Here is an example from the snmpwalk:

UCD-SNMP-MIB::memIndex.0 0
UCD-SNMP-MIB::memErrorName.0 swap
UCD-SNMP-MIB::memTotalSwap.0 33554424 kB
UCD-SNMP-MIB::memAvailSwap.0 33554424 kB
UCD-SNMP-MIB::memTotalReal.0 -1912568480 kB
UCD-SNMP-MIB::memAvailReal.0 1783974056 kB
UCD-SNMP-MIB::memTotalFree.0 1817528480 kB
UCD-SNMP-MIB::memMinimumSwap.0 16000 kB
UCD-SNMP-MIB::memBuffer.0 630080 kB
UCD-SNMP-MIB::memCached.0 571008428 kB
UCD-SNMP-MIB::memSwapError.0 noError
UCD-SNMP-MIB::memSwapErrorMsg.0

You can see the neg number for memTotalReal.  Is there a 64bit version of the counters?  Especially for memory
data.  We are running RHEL 6.6 64bit and here are the versions of the RPM's:

net-snmp-libs-5.5-50.el6_6.1.x86_64
net-snmp-perl-5.5-50.el6_6.1.x86_64
net-snmp-utils-5.5-50.el6_6.1.x86_64
net-snmp-python-5.5-50.el6_6.1.x86_64
net-snmp-5.5-50.el6_6.1.x86_64

Any help would be appreciated.  I also opened a case with Red Hat, but no solution yet.

Thanks,
David

This email, including any attachments, is confidential and contains proprietary content and may be
legally privileged. This transmission is intended only for the designated recipient(s), and any
duplication or distribution, in any form or part, without the written consent of the sender is strictly
prohibited. These confidentiality protections apply even if you received this transmission in error,
in which case you should delete the message, disregard its contents and notify the sender of the mistake.
CSL Behring

------------------------------------------------------------------------------
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