SNMP Ubuntu Server # apt-get install snmpd Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libsnmp-base libsnmp9 The following NEW packages will be installed: libsnmp-base libsnmp9 snmpd 0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded. Need to get 3655kB of archives. After unpacking 7176kB of additional disk space will be used. Do you want to continue [Y/n]? # vim snmpd.conf # /etc/init.d/snmpd restart Restarting network management services: snmpd. desde un host en la lan: $ snmpwalk -v 1 -c public ip.snmp.ser.ver mgmt.1.2.2.1.10.2 # apt-get install mrtg Configuring mrtg If your MRTG configuration file is readable by users other than the user MRTG runs as (typically either 'mrtg' or 'root') it can present a security risk, as this file contains SNMP community names. It is recommended that you make the file owned by and readable only by the MRTG user, unless you have specific reasons not to. Make /etc/mrtg.cfg owned by and readable only by the MRTG user? #### NO MUESTRA INFO IPS ####cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg.cfg public@127.0.0.1 /usr/bin/cfgmaker \ --output=/etc/mrtg.cfg \ --ifdesc=ip \ --ifref=descr \ --global "WorkDir: /var/www/mrtg" \ --global "Options[_]: bits,growright" \ public@localhost --base: Get Device Info on public@localhost: --base: Vendor Id: --base: Populating confcache --coca: populate confcache public@localhost: --coca: store in confcache public@localhost_ Name lo --> 1 --coca: store in confcache public@localhost_ Name eth0 --> 2 --coca: store in confcache public@localhost_ Name eth2 --> 3 --coca: store in confcache public@localhost_ Name tun0 --> 7 --coca: store in confcache public@localhost_ Descr lo --> 1 --coca: store in confcache public@localhost_ Descr eth0 --> 2 --coca: store in confcache public@localhost_ Descr eth2 --> 3 --coca: store in confcache public@localhost_ Descr tun0 --> 7 --coca: store in confcache public@localhost_ Type 24 --> 1 --coca: store in confcache public@localhost_ Type 6 --> 2 --coca: store in confcache public@localhost_ Type 6 --> 3 (duplicate) --coca: store in confcache public@localhost_ Type 1 --> 7 --coca: store in confcache public@localhost_ Ip 10.0.0.107 --> 3 --coca: store in confcache public@localhost_ Ip 10.8.0.1 --> 7 --coca: store in confcache public@localhost_ Ip 127.0.0.1 --> 1 --coca: store in confcache public@localhost_ Ip 172.16.1.5 --> 2 --coca: store in confcache public@localhost_ Eth --> 1 --coca: store in confcache public@localhost_ Eth 00-05-5d-33-9e-18 --> 2 --coca: store in confcache public@localhost_ Eth 00-40-f4-30-50-f1 --> 3 --coca: store in confcache public@localhost_ Eth --> 7 (duplicate) --base: Get Interface Info --base: Walking ifIndex --base: Walking ifType --base: Walking ifAdminStatus --base: Walking ifOperStatus --base: Walking ifMtu --base: Walking ifSpeed --base: Writing /etc/mrtg.cfg # indexmaker /etc/mrtg.cfg --columns=1 \ --output /var/www/mrtg/index.html # mrtg ----------------------------------------------------------------------- ERROR: Mrtg will most likely not work properly when the environment variable LANG is set to UTF-8. Please where this is not the case. Try the fo env LANG=C /usr/bin/mrtg --------------------------------------------- # env LANG=C /usr/bin/mrtg Rateup WARNING: /usr/bin/rateup could not read the primary log file for localhost_eth0 Rateup WARNING: /usr/bin/rateup The backup log file for localhost_eth0 was invalid as well Rateup WARNING: /usr/bin/rateup Can't remove localhost_eth0.old updating log file Rateup WARNING: /usr/bin/rateup Can't rename localhost_eth0.log to localhost_eth0.old updating log file Rateup WARNING: /usr/bin/rateup could not read the primary log file for localhost_eth2 Rateup WARNING: /usr/bin/rateup The backup log file for localhost_eth2 was invalid as well Rateup WARNING: /usr/bin/rateup Can't remove localhost_eth2.old updating log file Rateup WARNING: /usr/bin/rateup Can't rename localhost_eth2.log to localhost_eth2.old updating log file # env LANG=C /usr/bin/mrtg Rateup WARNING: /usr/bin/rateup Can't remove localhost_eth0.old updating log file Rateup WARNING: /usr/bin/rateup Can't remove localhost_eth2.old updating log file # env LANG=C /usr/bin/mrtg Se instalo /etc/cron.d/mrtg el cual sera ejecutado cada 5 minutos. ya puedes entrar via web asi: http://ip.del.ser.ver/mrtg/ METER LIGAS PARA MAS CONFIGURACIONES: ************CACTI # apt-get install cacti Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: dbconfig-common libart-2.0-2 libphp-adodb librrd2 php5-cli php5-snmp pwgen rrdtool snmp Suggested packages: php-pear librrds-perl Recommended packages: php5-pgsql php4-pgsql php5-sybase php4-sybase php5-odbc php4-odbc The following NEW packages will be installed: cacti dbconfig-common libart-2.0-2 libphp-adodb librrd2 php5-cli php5-snmp pwgen rrdtool snmp 0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded. Need to get 5618kB of archives. After unpacking 14.9MB of additional disk space will be used. Do you want to continue [Y/n]? Configuring libphp-adodb WARNING: include path for php has changed! libphp-adodb is no longer installed in /usr/share/adodb. New installation path is now /usr/share/php/adodb. Please update your php.ini file. Maybe you must also change your web-server configuraton.