본문 바로가기

Server | Network

네트워크 모니터링 (snmp,syslog,usercmd logging and watch)

자체개발 서버 및 장비 모니터링 솔루션입니다.

특징: 서버기본정보(cpu/mem/disk/network traffic, system log, process monitoring,

*사용자별 명령어 감시 기능-장애발생시 외주업체 및 관련담당자 신속 대처)

본 프로그램이 사용하는 cpu 자원률 : 0.2%~1%

문의사항: 댓글 및 메일문의(durumul@gmail.com)

 

 

 

#==============================================================================
#NMSWD(Network Monitoring Management Server Watch Daemon) Configuration File
#------------------------------------------------------------------------------
#Copyright(c) 2011-2014 2BCNC,.Inc(c) Allrights reserved.
#Technical Contact us: nanojo@2bcnc.com / durumul@gmail.com
#==============================================================================
#version:2.1

logpath   = ../log
loglevel  = 6        #0(none) 1(now) 2(err) 3(warn) 4(low) 5(mid) 6(misc)
logstdout = 1        #output standard out(own tty)
logmode   = w        #w:overwrite mode,a:append mode
corefile  = 1        #corefile creation option,at first,use ulimit -c unlimited

#------------------------------------------------------------------------------
#ICMP Setting
#------------------------------------------------------------------------------
#ping_module = /bin/ping #system default ping
ping_module  = ./nanoping
ping_timeout = 3 # seconds
ping_count   = 1 # times

#체크마스크(*=all,S=sysinfo,P=cpu,M=memory,D=disk,N=network,L=syslog,R=proc)

snmp_opt = N
#------------------------------------------------------------------------------
#SNMP Setting
#------------------------------------------------------------------------------
snmp_use_mode             = oid                           #mib or oid
snmp_community_name       = public
snmp_version              = 2
#snmp_cpuuser_name        = .1.3.6.1.2.1.1.1.0            #ssCpuUser.0
#snmp_bootuptime_name     = .1.3.6.1.2.1.1.3.0            #sysUpTimeInstance (network reset time)
snmp_sysdesc_name         = .1.3.6.1.2.1.1.1.0            #SNMPv2-MIB::sysDescr.0
snmp_hrsystemuptime_name  = .1.3.6.1.2.1.25.1.1.0         #hrSystemUptime

#cpu info
snmp_cpurawuser_name      = .1.3.6.1.4.1.2021.11.50.0     #ssCpuRawUser.0
snmp_cpurawnice_name      = .1.3.6.1.4.1.2021.11.51.0     #ssCpuRawNice.0
snmp_cpurawsystem_name    = .1.3.6.1.4.1.2021.11.52.0     #ssCpuRawSystem.0
snmp_cpurawidle_name      = .1.3.6.1.4.1.2021.11.53.0     #ssCpuRawIdle.0
snmp_cpurawwait_name      = .1.3.6.1.4.1.2021.11.54.0     #ssCpuRawWait.0
snmp_cpurawkernel_name    = .1.3.6.1.4.1.2021.11.55.0     #ssCpuRawKernel.0

#memory info
snmp_memtotalreal_name    = .1.3.6.1.4.1.2021.4.5.0       #memTotalReal.0
snmp_memavailreal_name    = .1.3.6.1.4.1.2021.4.6.0       #memAvailReal.0
snmp_memtotalfree_name    = .1.3.6.1.4.1.2021.4.11.0      #memTotalFree.0
snmp_memrealbuffer_name   = .1.3.6.1.4.1.2021.4.14.0      #memBuffer.0
snmp_memrealcached_name   = .1.3.6.1.4.1.2021.4.15.0      #memCached.0

#disk info
snmp_dsktotal_name        = .1.3.6.1.4.1.2021.9.1.6       #dskTotal.n(dskTable) n:index(내부적으로 add함)
snmp_dskused_name         = .1.3.6.1.4.1.2021.9.1.8       #dskUsed.n(dskTable)  n:index(내부적으로 add함)

#network info
snmp_ifdescr_name         = .1.3.6.1.2.1.2.2.1.2          #IF-MIB::ifDescr.n     n:index(내부적으로 add함)
snmp_iftype_name          = .1.3.6.1.2.1.2.2.1.3          #IF-MIB::ifType.n      n:index(내부적으로 add함)
snmp_ifspeed_name         = .1.3.6.1.2.1.2.2.1.5          #IF-MIB::ifSpeed.n     n:index(내부적으로 add함)
snmp_ifinoctets_name      = .1.3.6.1.2.1.2.2.1.10         #IF-MIB::ifInOctets.n  n:index(내부적으로 add함)
snmp_ifoutoctets_name     = .1.3.6.1.2.1.2.2.1.16         #IF-MIB::ifOutOctets.n n:index(내부적으로 add함)

#process info
#n:index(내부적으로 add함)
snmp_prnames_name         = .1.3.6.1.4.1.2021.2.1.2       #UCD-SNMP-MIB::prNames.n
snmp_prmin_name           = .1.3.6.1.4.1.2021.2.1.3       #UCD-SNMP-MIB::prMin.n
snmp_prmax_name           = .1.3.6.1.4.1.2021.2.1.4       #UCD-SNMP-MIB::prMax.n
snmp_prcount_name         = .1.3.6.1.4.1.2021.2.1.5       #UCD-SNMP-MIB::prCount.n
snmp_prerrorflag_name     = .1.3.6.1.4.1.2021.2.1.100     #UCD-SNMP-MIB::prErrorFlag.n
snmp_prerrmessage_name    = .1.3.6.1.4.1.2021.2.1.101     #UCD-SNMP-MIB::prErrMessage.n
snmp_prerrfix_name        = .1.3.6.1.4.1.2021.2.1.102     #UCD-SNMP-MIB::prErrFix.n
snmp_prerrfixcmd_name     = .1.3.6.1.4.1.2021.2.1.103     #UCD-SNMP-MIB::prErrFixCmd.n

#mib example (if snmp_use_mode = mib)
#snmp_sysdesc_name        = sysDescr.0
#snmp_hrsystemuptime_name = hrSystemUptime.0

monitor_report_max_days = 2        #max days db 최대 보관일수(경과시 자동삭제됨)
monitor_network_max_days = 365     #max days db 최대 보관일수(경과시 자동삭제됨)
monitor_process_max_days = 1       #max days db 최대 보관일수(경과시 자동삭제됨)

polltime        = 5000      # 검사대상 서버목록 DB 다시읽기 폴링 시간(milisecond)
interval        = 100       # 각 서버사이 체크간격(milisecond)
threadpoolsize  = 5         # 동시체크 쓰레드수
dbpoolsize      = 10        # db풀 크기(session)

dbhostname = 211.39.xxxx

dbuser = xxxx
dbpass = xxxx
dbname = xxxx
dbport = 3306