net-snmp with chroot is not giving correct values

"Jatin Bodarya" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello sir,

 

While I am running snmpd as following (using net-snmp
5.7.2.rc1,ubuntu-12.04)

[root@manage /root]#snmpd -f -Le

[root@manage /root]# snmpwalk -c public -v 2c 127.0.0.1 IF-MIB::ifInOctets.1

It is working fine and answering me values

Eg. 

IF-MIB::ifOutOctets.1 = Counter32: 35497924

[root@manage /root]# snmpwalk -c public -v 2c 127.0.0.1 IF-MIB::ifInOctets.1

IF-MIB::ifOutOctets.1 = Counter32: 35499234

[root@manage /root]# snmpwalk -c public -v 2c 127.0.0.1 IF-MIB::ifInOctets.1

IF-MIB::ifOutOctets.1 = Counter32: 35503212

 

I have done packaging of it and its almost working fine. But the issue is
the displaying 'values' are constant !! it is not changing since the
packaged it..Here the /var/snmp3 is a root folder and I am running it with
chroot

[root@manage /root]#/usr/sbin/chroot /var/snmp3/ /usr/local/bin/snmpd -f -Le

[root@manage /root]#/usr/sbin/chroot /var/snmp3/ /usr/local/bin/snmpwalk -c
public -v 2c -Oqv 127.0.0.1 IF-MIB::ifInOctets.1

IF-MIB::ifOutOctets.1 = Counter32: 34689322

[root@manage /root]#/usr/sbin/chroot /var/snmp3/ /usr/local/bin/snmpwalk -c
public -v 2c -Oqv 127.0.0.1 IF-MIB::ifInOctets.1

IF-MIB::ifOutOctets.1 = Counter32: 34689322

[root@manage /root]#/usr/sbin/chroot /var/snmp3/ /usr/local/bin/snmpwalk -c
public -v 2c -Oqv 127.0.0.1 IF-MIB::ifInOctets.1

IF-MIB::ifOutOctets.1 = Counter32: 34689322

 

Can anyone tell me what dependencies I am missing over here? why it is not
giving current value of it? From where it takes data? Which supporting files
are needed for make it working? Please help me with this..

 

Thanks in advance.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev

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