2014년 3월 17일 월요일

MRTG 윈도우 CPU 메모리 정보

#cpu used percent
Target[CPU]: .1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108&.1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108:public@192.168.10.29
Title[CPU]: CPU used
PageTop[CPU]:

MaxBytes[CPU]: 100
ShortLegend[CPU]: %
YSize[CPU]: 100
YLegend[CPU]: CPU used
Legend1[CPU]: CPU used
Legend2[CPU]:
Legend3[CPU]:
Legend4[CPU]:
LegendI[CPU]: CPU used
LegendO[CPU]:
Options[CPU]: growright,gauge
Unscaled[CPU]: ymwd
workdir: /var/www/mrtg

#memory available bytes
Target[Memory]: (.1.3.6.1.4.1.9600.1.1.2.2.0&.1.3.6.1.4.1.9600.1.1.2.19.0:public@192.168.10.29 * 1024 )
Title[Memory]: Memory Available Bytes
PageTop[Memory]:  < h 1 >Memory Available Bytes </ h 1>
MaxBytes[Memory]: 8589934592
ShortLegend[Memory]: B
kilo[Memory]: 1024
YSize[Memory]: 100
YLegend[Memory]: memory
Legend1[Memory]: memory Available
Legend2[Memory]: memory Used
Legend3[Memory]:
Legend4[Memory]:
LegendI[Memory]: Available Memory
LegendO[Memory]: Used Memory
Options[Memory]: growright,gauge,nopercent
Unscaled[Memory]: ymwd
workdir: /var/www/mrtg

#HDD.C Avalable Percent
Target[HDD.C]:.1.3.6.1.4.1.9600.1.1.1.1.5.2.67.58&.1.3.6.1.4.1.9600.1.1.1.1.5.2.67.58:public@192.168.10.29
Title[HDD.C]: DISK Avalable Percent
PageTop[HDD.C]:

HDD.C Avalable Percent


MaxBytes[HDD.C]: 100
ShortLegend[HDD.C]: %
YLegend[HDD.C]: Disk Avalable Percent
Legend1[HDD.C]: Current DISK Available percentage
LegendI[HDD.C]: Available(Not used)
LegendO[HDD.C]:
Options[HDD.C]: growright,nopercent,gauge
Unscaled[HDD.C]: ymwd
# HDD.D Avalable Percent
Target[HDD.D]: .1.3.6.1.4.1.9600.1.1.1.1.5.2.68.58&.1.3.6.1.4.1.9600.1.1.1.1.5.2.68.58:public@192.168.10.29
Title[HDD.D]: DISK Avalable Percent
PageTop[HDD.D]:

HDD.D Avalable Percent


MaxBytes[HDD.D]: 100
ShortLegend[HDD.D]: %
YLegend[HDD.D]: Disk Avalable Percent
Legend1[HDD.D]: Current DISK Available percentage
LegendI[HDD.D]: Available(Not used)
LegendO[HDD.D]:
Options[HDD.D]: growright,nopercent,gauge
Unscaled[HDD.D]: ymwd
# HDD.E Avalable Percent
#Target[HDD.E]: .1.3.6.1.4.1.9600.1.1.1.1.5.2.69.58&.1.3.6.1.4.1.9600.1.1.1.1.5.2.69.58:public@192.168.10.29
#Title[HDD.E]: DISK Avalable Percent
#PageTop[HDD.E]:

HDD.E Avalable Percent


#MaxBytes[HDD.E]: 100
#ShortLegend[HDD.E]: %
#YLegend[HDD.E]: Disk Avalable Percent
#Legend1[HDD.E]: Current DISK Available percentage
#LegendI[HDD.E]: Available(Not used)
#LegendO[HDD.E]:
#Options[HDD.E]: growright,nopercent,gauge
#Unscaled[HDD.E]: ymwd

2014년 3월 13일 목요일

CentOS 6.5 MRTG 설치

yum  -y  install  perl gd libpng zlib mrtg httpd net-snmp net-snmp-utils

echo "view systemview included .1.3.6.1.2.1.2.2.1.10"  >>  /etc/snmp/snmpd.conf
echo "view systemview included .1.3.6.1.2.1.2.2.1.16"  >>  /etc/snmp/snmpd.conf
service snmpd restart

echo "Target[eth0]: 2:public@127.0.0.1"  >>  /etc/mrtg/mrtg.cfg
echo "MaxBytes[eth0]: 1250000"  >> /etc/mrtg/mrtg.cfg
echo "Title[eth0]: Traffic Analysis"  >> /etc/mrtg/mrtg.cfg
echo "PageTop[eth0]:

127.0.0.1 eth0

"  >> /etc/mrtg/mrtg.cfg

env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

indexmaker /etc/mrtg/mrtg.cfg > /var/www/mrtg/index.html

echo  "*/5 * * * * root env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg  > /dev/null 2>&1   " >>  /etc/crontab

sed -i -e "s@Deny from all@#Deny from all@" /etc/httpd/conf.d/mrtg.conf

service httpd restart




vi  /etc/httpd/conf.d/mrtg.cfg


    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    # Allow from .example.com
< /Location>




    Order deny,allow
    Deny from all

    Allow from 192.168.100.100
    Allow from 172.16
    Allow from 192.168.128.0/255.255.255.0
    Allow from 10.1.0.0/16

    Allow from 127.0.0.1
    Allow from ::1
    # Allow from .example.com
< /Location>


2014년 3월 6일 목요일

윈도우 업데이트 80072EE2 관련 오류로 업데이트 진행이 안될때..

WSUS update error 80072EE2 solved (at last)


I have a WSUS server set up on my network (with several physical and virtual machines it saves a lot of bandwidth!), but on some systems I was unable to update and constantly had the error code 80072EE2.
If you search on the web you find other people with similar errors. I’d tried various solutions but none worked. Then today I found this useful WSUS client check script. Running this script allows you to check the WSUS-related settings on any machine (even remotely, which is cool and saves a lot of time!).
As soon as I ran this I found the cause of the problem: I had previously used WSUS (about two years ago!) on a different server, and some of the clients had the old server name set as the WSUS server in the registry folder HKLM/SOFTWARE/Policies/Microsoft/Windows/WindowsUpdate – the values for WUServer and WUStatusServer were set to the old server name, which was no longer in existence. A quick change and a long-running problem was solved.