<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Caiwangqin's blog

Focus on Life, Cloud Service, Smart Hardware, Architecture, Technic and beyond…

International System of Units (SI)

2012年8月24日星期五

Cacti • View topic - [INFO] What is this 'm' or 'u' after my numbers in graphs??

10^-18  a - atto
10^-15  f - femto
10^-12  p - pico
10^-9   n - nano
10^-6   u - micro
10^-3   m - milli
0    (no unit)
10^3    k - kilo
10^6    M - mega
10^9    G - giga
10^12   T - tera
10^15   P - peta

'via Blog this'

Reference: http://physics.nist.gov/cuu/Units/prefixes.html

posted by Caiwangqin, 10:03 | Permalink | 0 comments |

Setup Cacti on EC2 Amazon Linux AMI

2012年8月17日星期五


  • Install Nginx 
sudo yum install nginx
config nginx: 
server {
        listen 8080;
        server_name monitor.domain.com;
        root /usr/share/cacti/;
        index index.php index.html;
        try_files $uri $uri/ /index.php;
        location ~ \.php$ {
                fastcgi_pass   unix:/tmp/php5-fpm.sock;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include        fastcgi_params;
        }
        location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
                expires max;
                add_header Pragma public;
                add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        }
    }
  • Install php-fpm
 sudo yum install php-fpm
 config php-fpm: /etc/php-fpm.d/www.conf
 listen = /tmp/php5-fpm.sock
/etc/init.d/php-fpm start 
  • Install Cacti
sudo yum install cacti
update database in: /etc/cacti/db.php 
  • Setup Cacti spine
sudo yum install net-snmp-devel 
http://www.cacti.net/spine_install_rhlnx.php 
tar xvzf cacti-spine-0.8.7.tar.gzcd spine-0.8.7./configuremake 
Open: http://monitor.domain.com, login with admin/admin
 Console->Settings->Paths, Set Spine Poller File Path to: /usr/local/spine/bin/spine
 Console->Settings->Poller, Set Poller Type to: spine
  • Config SNMPD
sudo vi /etc/snmp/snmpd.conf
access  notConfigGroup ""      any       noauth    exact  all none none
view all    included  .1                               80
sudo /etc/init.d/snmpd restart
snmpwalk -v 2c -c public your_remote_ip system
snmpwalk -v 2c -c public your_remote_ip if
Reference: 
http://www.cnblogs.com/taosim/articles/2557762.html
http://docs.cacti.net/manual:087:4_help.2_debugging#debugging 

  • View graphs




posted by Caiwangqin, 22:50 | Permalink | 5 comments |