Re: sysUpTime returns an error

"Nikos Balkanas" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <003301c96c5e$cc496ee0$02b2a8c0@tardis>
Yes. You can see clearly the definition of sysUpTime in the snmpwalk output. 
You have no problems with MIBs. In fact using either MIBs for sysUpTime (RFC 
or DISMAN) will get you the same result, because they are getting it from 
the same place:

mib-2->system->sysUpTime->sysUptimeInstance

as you can see from the walk.

I am sorry for keeping you this late.  This is my configuration (snmpd.conf) 
with passwords crossed out. Replace all xxx with your passwords. It works 
fine for me. Please back up yours, take mein and restart snmpd and test 
again.

BR,
Nikos

----- Original Message ----- 
From: "Tanya Brudner" <[email protected]>
To: "Nikos Balkanas" <[email protected]>; 
<[email protected]>
Sent: Thursday, January 01, 2009 11:58 PM
Subject: RE: sysUpTime returns an error


Nikos,

The file - renamed.
The snmpd - restarted.
The snmpget returns the exact same error as before
("DISMAN-EVENT-MIB::sysUpTimeInstance = No such Object available on this
agent at this OID").
(If using the specific RFC1213-MIB reference, I get the same error text,
just for the correct mib ("RFC1213-MIB::sysUpTime.0..")

The snmptranslate worked properly this time - please see the attached
file.


Thanks again, very very much!

-Tanya


-----Original Message-----
From: Nikos Balkanas [mailto:[email protected]]
Sent: Thursday, January 01, 2009 23:29
To: Tanya Brudner; [email protected]
Subject: Re: sysUpTime returns an error

Looks like your sysUptime is correctly set.
DISMAN-EVENT-MIB seems to have some issue.

Please:
mv /usr/local/share/snmp/mibs/DISMAN-EVENT-MIB.txt.1
/usr/local/share/snmp/mibs/DISMAN-EVENT-MIB.txt

restart snmpd.

snmpget 127.0.0.1 sysUpTime.0

If this doesn't work, one last output from:

snmptranslate -M+. -m DISMAN-EVENT-MIB -Tp -IR mib-2

Thanx,
Nikos
----- Original Message ----- 
From: "Tanya Brudner" <[email protected]>
To: "Nikos Balkanas" <[email protected]>;
<[email protected]>
Sent: Thursday, January 01, 2009 10:55 PM
Subject: RE: sysUpTime returns an error


Thanks,

The output you requested:

+-- -R-- TimeTicks sysUpTime(3)

(keeping my fingers crossed)
-Tanya



-----Original Message-----
From: Nikos Balkanas [mailto:[email protected]]
Sent: Thursday, January 01, 2009 22:14
To: Tanya Brudner; [email protected]
Subject: Re: sysUpTime returns an error

Thanx. I think I see something. If you can please mail me also (1 line
output):

snmptranslate -M+. -m SNMPv2-MIB -Tp -IR sysUpTime

BR,
Nikos
----- Original Message ----- 
From: "Tanya Brudner" <[email protected]>
To: "Nikos Balkanas" <[email protected]>;
<[email protected]>
Sent: Thursday, January 01, 2009 9:56 PM
Subject: RE: sysUpTime returns an error


Hi Nikos,

In the attached file are the snmpwalk result (I'm not sure what to make
of it, really :) ), and the 'ls' output.

Thanks again,

-Tanya


-----Original Message-----
From: Nikos Balkanas [mailto:[email protected]]
Sent: Thursday, January 01, 2009 21:29
To: Tanya Brudner; [email protected]
Subject: Re: sysUpTime returns an error

Please run:

ls -la /usr/local/share/snmp/mibs/DISMAN*

and also:

snmpwalk 127.0.0.1 dismanEventMIB

And send output.

Thanx,
Nikos
----- Original Message ----- 
From: "Tanya Brudner" <[email protected]>
To: <[email protected]>
Sent: Thursday, January 01, 2009 8:56 PM
Subject: RE: sysUpTime returns an error


> Hi,
>
> Thanks again but I am still a bit confused:
>
> My access rights (as defined in the /etc/snmp/snmpd.conf) (almost from
> the sample file) are defined as following:
>
> Com2sec my-sec-ro default public
> Com2sec my-sec-rw default private
>
> Group my-ro-group v1 my-sec-ro
> Group my-rw-group v1 my-sec-rw
> Group my-ro-group usm my-sec-ro
> Group my-rw-group usm my-sec-rw
>
> View all included .1
>
> access my-rw-group "" v1  noauth exact all all none
> access my-ro-group "" v1  noauth exact all none none
> access my-rw-group "" usm  noauth exact all all none
> access my-ro-group "" usm  noauth exact all none none
>
> rwuser myuser authPriv (the user is created directly by putting the
> createUser directive in the /var/lib/... snmpd.conf file).
>
> Perhaps there is anything wrong here, or you can advice on something
> else I could try...
>
> Thanks again,
>
> -Tanya
>
> -----Original Message-----
> From: Wes Hardaker [mailto:[email protected]]
> Sent: Wednesday, December 31, 2008 18:47
> To: Tanya Brudner
> Cc: [email protected]
> Subject: Re: sysUpTime returns an error
>
>>>>>> On Tue, 30 Dec 2008 22:23:01 +0200, "Tanya Brudner"
> <[email protected]> said:
>
> TB> I have a problem with Get-request on a single mib: SysUpTime.
>
> TB> On a snmpget -v3 ..... system.sysUpTime.0, it returns
> TB> ""DISMAN-EVENT-MIB::sysUpTimeInstance = No such Object available
on
> this
> TB> agent at this OID"
>
> It looks like you don't have access rights to that object.  Check your
> access control settings, or check that the agent was compiled to
include
> the system group (it should have been unless you're doing something
> odd).
>
> The DISMAN-EVENT-MIB part is actually just misleading.  It is the
right
> object.  The DISMAN-EVENT-MIB defines the scalar instance as something
> special for it's own purposes.  Just ignore that part in your error
> comment as it's not relevant to your problem.
> -- 
> Wes Hardaker
> Sparta, Inc.
>
>
------------------------------------------------------------------------
------
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
snmpd.conf (application/octet-stream, 3.1 KB)
###########################################################################
#
# 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.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  xxx noauth 

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  xxx  

###########################################################################
# SECTION: Extending the Agent
#
#   You can extend the snmp agent to have it return information
#   that you yourself define.

# dlmod: dynamically extend the agent using a shared-object
#   arguments:  module-name module-path

#dlmod notification /export/home/nbal/work/kannel/snmp/examples/notification.so



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

# 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 byte value or a percentage followed by the %
#           symbol.  Default value = 100000.
#   
#   The results are reported in the dskTable section of the UCD-SNMP-MIB tree


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

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


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

# trapsink: A SNMPv1 trap receiver
#   arguments: host [community] [portnum]

trapsink  127.0.0.1

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

informsink 127.0.0.1

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

trapcommunity  xxx

# authtrapenable: Should we send traps when authentication failures occur
#   arguments: 1 | 2   (1 = yes, 2 = no)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.