While I am running snmpd as following (using net-snmp 5.7.2.rc1,ubuntu-12.04)
[[email protected] /root]#snmpd –f -Le
[[email protected] /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
IF-MIB::ifOutOctets.1 = Counter32: 35499234
IF-MIB::ifOutOctets.1 = Counter32: 35503212
I have done packaging of it and its almost working fine. But the issue is the ‘values’ displaying are constant !! it is not changing since the packaging of it..here the /var/snmp3 is a root folder and I am running it with chroot
[[email protected] /root]#/usr/sbin/chroot /var/snmp3/ /usr/local/bin/snmpd –f -Le
[[email protected] /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
IF-MIB::ifOutOctets.1 = Counter32: 34689322
IF-MIB::ifOutOctets.1 = Counter32: 34689322
여기에 누락 된 종속성을 알려 줄 수 있습니까? 왜 현재의 가치를 부여하지 않는가? 이걸 도와주세요.chroot로 snmp를 실행하면 현재 값이 제공되지 않음
예, snmpEngineTime 데이터를 변화 ... 내가 포함 한은/var/snmp3는/dev는/var/snmp3은/etc 디렉토리를하지만 때 : (! chroot를하기 전에)
이 작업을 시도 할 수 있습니다 "마운트 - bind/proc/snmp3/proc에 마운트하려고합니다."/ proc은 블록 장치가 아닙니다. "또 다른 질문은 마운트하기 전에 전체/proc 디렉토리를 복사해야합니까? 아니면 그냥 비어있는/proc 디렉토리로 만들겠습니까? dir ?? –
아니, chroot'ed 디렉토리에 폴더를 복사하는 것은 도움이되지 않습니다. 바인딩해야합니다. 내 대답에 추가 편집 입력 참조하십시오. – lucassm
올바른 옵션은 #mount - bind - 재귀 바인딩을위한 rbind를 시도해보십시오. --help를 마운트하여 마운트 바인드 옵션에 대해 올바른 구문을 사용하십시오. 나는 최신 버전의 마운트를 가지고 있으며 이것을 스스로 확인할 수는 없다 ... – lucassm