snmp 기본설정

Knowledge/OS 2015. 6. 24. 13:57

cacti용으로 centos에서 주로 쓰는 기본 설정

 

com2sec local 127.0.0.1 커뮤니티값
com2sec mynetwork 192.168.0.0/16 커뮤니티값
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
view all included .1 80
view systemview included system
#       group          context sec.model sec.level prefix read       write  notif
access  MyROGroup      ""      any       noauth    exact  all        none none

 # disk used #
# disk /
# disk /log
# disk /usr
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

Posted by neo-orcl
,

cacti troubleshoot

TroubleShoot 2015. 3. 2. 16:46

Graph management에서 Turn On Graph Debug Mode 클릭 후 로그상 아래 메시지가 나올 때 해결 방법

1. Expected some arguments after 'COMMENT:'

RRDTool Says:

ERROR: Expected some arguments after 'COMMENT:'

 

출처: http://forums.cacti.net/viewtopic.php?p=243461#p243461

 

rrd.php.patch

 

# cd /var/www/cacti

# patch -p0 -b < rrd.php.patch

 

버그..란다

 

2. ERROR: the RRD does not contain an RRA matching the chosen CF

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF

 

CF 기능을 활성화하지 않은 상태에서 LAST를 사용하려 할 경우 나타난다.

아래처럼 사용할 CF가 음영처리되도록 클릭 후 save

 

 

Posted by neo-orcl
,

yum update를 진행하려 하는데 아래같은 메시지가 나온다면 일반적인 상황이라면 아래 과정으로 해결 가능

 

# yum install yum-utils

# yum-complete-transaction

# package-cleanup --cleandupes

 

이후 지워진 패키지가 있다면 다시 yum install 해주고

이후에 다시 yum update한다.

 

Posted by neo-orcl
,