본문 바로가기

Monitoring6

cacti + npc + nagios + ( glusterfs ) 설치 cacti + npc + nagios + ( glusterfs ) 설치 1. "cacti+npc+nagios" 설정내역을 참고 하여 1차 설치 진행 # glusterfs ( server ) install 1 pakage install 12#yum install python-argparse python-cpopen python-pthreading python-netaddr python-lockfile python-inotify python-daemon nsca-client nrpe nagios-plugins-procs nagios-plugins-ide_smart libselinux-python Colored by Color Scriptercs 12#yum install rrdtool-perl pynag p.. 2019. 3. 7.
cacti + npc + nagios 설치 cacti + npc + nagios 설치 OS : Centos6.x IP : 192.168.0.156 12#yum install -y mysql-server.x86_64 mysql-devel.x86_64 php-mysql.x86_64 php-devel.x86_64 php.x86_64 php-snmp.x86_64 httpd.x86_64 net-snmp.x86_64 net-snmp-devel.x86_64 net-snmp-utils.x86_64 rrdtool.x86_64 rrdtool-devel.x86_64 ruby-rrdtool.x86_64 gcc.x86_64 make.x86_64 wget.x86_64 Colored by Color Scriptercs 2. cacti install 123# cd /usr/.. 2019. 3. 7.
nfsstat cacti 템플릿 등록 방법 nfsstat cacti 템플릿 등록 방법 cacti를 사용하다보면, 템플릿을 추가할 경우가 많은데.. 아래는 NFS에 대한 템플릿 추가 방법 입니다. http://forums.cacti.net/about24790.html 1) nfsstat client 1. Place nfs_client.sh in /usr/local/bin/, make sure it is excecutable. I use puppet to do this, you can use another tool or do it manually. 2. Add a line like this to your snmpd.conf: 12exec .1.3.6.1.4.1.2021.66 nfs_client /bin/sh /usr/local/bin/nfs_clie.. 2019. 3. 6.
netstat를 snmp(expend모드)로 모니터링 netstat를 snmp(expend모드)로 모니터링 cacti를 사용시, snmp 값 으로 정보가 부족한 경우가 있은데, 아래와 같이 agent 방식으로 정보를 cacti 쪽으로 밀어 줘야 할때가 있다.. 그리고 mlb 값을 사용할 경우 ,cacti 쪽에서 찍히는 정보가 정확한지 mib 값을 직접 확인해볼 필요도 있다.. 1) 스크립트 ( /etc/snmp/netstat-cent.sh ) 12345678910111213141516171819202122#!/bin/shAAA=0netstat -ant | tail -n+3 | awk '{print $6}' | sort | uniq -c > /tmp/sock.txt && cat /tmp/sock.txtCLOSE=`cat /tmp/sock.txt | grep .. 2019. 3. 6.