`
yanwenhan
  • 浏览: 115067 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Install Net-SNMP

阅读更多
Install Net-SNMP

   1.

      If you plan to use any hosts with SNMP v2c support, you must download and install the Net-SNMP libraries. Net-SNMP provides installers to install their product. However, caution must be taken not to use long file names as Cacti does not support them in this version. We suggest you install Net-SNMP in a directory such as c:net-snmp.

Configure Cactid

   1.

      Modify the cactid.conf file in c:cactid to include the following statements.

DB_Host         IP_Address or Hostname (not localhost)
DB_Database         cacti
DB_User         cactiuser
DB_Password         cactipw


      All other pre 0.8.6 settings are obsolete. Cactid may not complain if you leave them in, but they are not longer required. Cactid now comes with a binary distribution. Therefore, a basic installation of Cygwin is not longer required, but suggested to help maintain dll version conflicts.
   2.

      If you have Cygwin installed, remove the DLL files and the SH.EXE file from the c:cactid directory.

Configure Cacti

   1.

      Edit <web root>/cacti/include/config.php and specify the MySQL user, password and database for your Cacti configuration.

$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipw";
   

   2. Log into the user account you'll be using  for the scheduled task and  verify starting a Cacti polling cycle works.  Do this by running the following from the command prompt:

php c:<web root>cactipoller.php

      After this has ran once, you should have cacti.log in /cacti/log/ (and possibly rrd files if you've already added some data queries in /cacti/rrd/).
   3.

      You are going to need to schedule a task so poller.php can run every 5 minutes. Make sure the Task Scheduler service is started and follow the steps below to begin.
         1.

            Select Start --> Settings --> Control Panel and double click on Scheduled Tasks.
         2.

            Double click on Add Scheduled Task.
         3.

            Click Next and Browse on the following screen. Find c:php and select php.exe. If using PHP 5, use php-win.exe instead. Choose Daily on and click Next.
         4.

            Click Next again without changing the time or date settings.
         5.

            When entering a username and password make sure the user has modify access to the following directories:

c:<web root>cactirra
c:<web root>cactilog

            Make sure the user has read, and execute access to the following directories:

c:php
c:phpsapi

         6.

            Click Next and Finish to close the wizard.
         7.

            Right click on the task you just created, and select Properties.
         8.

            Select the Schedule tab.
         9.

            Make sure Daily is selected and click the Advanced button.
        10.

            Check the Repeat checkbox, set the repetition for every 5 minutes, set the duration for 24 hours, and check the If the task is still running, stop it at this time checkbox.
        11.

            Click Ok
        12.

            In the Run textbox enter the following text making sure to use the appropriate paths.

c:phpphp.exe c:<web root>cactipoller.php

            The start in box should say c:<web root>cacti.
   4.

      Point your web browser to:

          http://your-server/cacti/

      Log in the with a username of admin and password of admin. You will be required to change this password immediately.

      Once logged in, you must go to Settings->Paths and verify/update your paths to point to the correct locations. Recommended examples are posted below.  If you plan on using Cactid, then it is very important that your all your paths and scripts use forward slashes.

      PHP Binary Path:

      If using PHP 4, you should change this to:

c:/php/php.exe

      If using PHP 5, you should change this to:

c:/php/php-win.exe

      RRDTool Binary Path:

c:/rrdtool/rrdtool.exe

      RRDTool Default Font Path:

%windir%/fonts/arial.ttf

      RRDTool Version:

Select the appropriate version


      SNMPGET, SNMPWALK Paths:

c:/net-snmp/bin/snmpget.exe
c:/net-snmp/bin/snmpwalk.exe

      Cacti Logfile Path:

c:/mycacti/website/cacti/log/cacti.log

      Cactid Path:

c:/cactid/cactid.exe

Apply Patches

   1. There are two methods of applying patches to Cacti:
         1. If you have Cygwin installed, then the patch instructions which use wget and patch, will work.
         2. The other method requires you to visit http://www.cacti.net/downloads/patches/<cacti version>/pre-patched/ and manually download and replace the patched files.
   2. You might need to reapply file/folder security on the files patched. Double check they are correct.

Tweaking

There are several things you can do to speed up your Cacti web server.  It's suggested that you only apply these after you have a fully functional Cacti installation.

   1. Switch the polling agent in Cacti from cmd.php to Cactid.exe.  Go to Settings | Poller | Type.
   2. Install the Zend Optimizer for PHP. 
   3. Set up the query cache in MySQL.  Read about how to properly configure the settings.  You will need to stop the MySQL service when you edit c:mysqlmy.ini and put in the following:

#The memory allocated to store results from old queries.
query_cache_size=3M
#Don't cache results that are bigger than this.
query_cache_limit=1M
#Query cache type to use.
query_cache_type=1

   4. Install FastCGI, which can offer x4 to x8 improvement (for IIS users at least).
   5. An extensive list of other optimizations for PHP and MySQL can be found over at phplens.com.
分享到:
评论

相关推荐

    Docker cmd install net-snmp 20210208.txt

    Docker cmd install net-snmp 20210208.txt

    net-snmp-v5.8-el7.zip

    yum install -y perl-devel perl-ExtUtils-Embed elfutils-devel elfutils-libelf-devel lm_sensors-devel rpm-devel perl-Tk perl-Mail-Sender perl-JSON perl-IO-Socket-SSL perl-Net-SSLeay perl-IO-Socket-IP ...

    net-snmp-5.7.3.tar.gz

    net-snmp-5.7.3的tar包(源码包),可直接编译安装(内附安装说明),同时内附gcc编译工具的rpm包,执行里边的install.sh即可安装

    net-snmp-libs-5.7.2-49.el7_9.1.x86_64.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    net-snmp-agent-libs-5.7.2-49.el7_9.1.x86_64.rpm

    官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装

    node-net-snmp:简单网络管理协议(SNMP)JavaScript实现

    该模块是使用: npm install net-snmp 它是使用require()函数加载的: var snmp = require ( "net-snmp" ) ;快速开始然后可以创建到远程主机的会话,并将其用于执行SNMP请求并发送SNMP陷阱或通知: var session = ...

    snmp-shell:通过Net-SNMP进行Shell仿真并具有扩展功能

    SNMP外壳通过Net-SNMP进行...安装(Linux) sudo apt install snmp snmp-mibs-downloader rlwrap -ygit clone https://github.com/mxrch/snmp-shellcd snmp-shellsudo python3 -m pip install -r requirements.txt用法

    zabbix.tar.gz

    yum -y install net-snmp-devel curl-devel libvent-devel net-snmp-devel libxml2-devel unixODBC libssh2-deve OpenIPMI OpenIPMI-devel unixODBC-devel ncurses-devel glibc.i686 ntpdate ntpdate ntp1.aliyun....

    CentOS服务器+监控宝SNMP监控全攻略分享

    下来大家按照下面的几个命令执行下去就可以快速安全的安装好net-snmp 代码如下: yum install net-snmp yum install net-snmp-utils 首先使用yum命令安装net-snmp以及net-snmo-utils 代码如下: rm /etc/snmp/snmpd....

    Zabbix依赖.7z

    yum install gcc* make php php-gd php-mysql php-bcmath php-mbstring php-xml curl curl-devel net-snmp net-snmp-devel perl-DBI httpd mariadb* mysql-devel libxml2-devel curl-devel unixODBC-devel ...

    SNMP-Extension-PassPersist:Net-SNMP 的通用 passpass_persist 扩展框架

    SNMP::Extension::PassPersist - Net-SNMP 的通用 pass/pass_persist 扩展框架 描述 该模块是使用 pass 或 pass_persist 机制编写 Net-SNMP 扩展的框架。 安装 要安装此模块,请运行以下命令: perl Makefile.PL ...

    test-snmp-relay:玩弄一个节点snmp侦听器

    老板级SNMP侦听器中继 经过: 伊恩·麦克唐纳( ) 鲍勃·埃利斯( ) @俄勒冈州波特兰Epicodus编程学校 GNU通用公共许可证,版本3。...git clone https://github.com/matchbookmac/snmp-config.git 或者如果

    javasnmp源码-hostadvisor:主机资源监控

    install net-snmp 开启: systemctl start snmpd 查看是否运行: netstat -ln | grep 161 配置net-snmp: vi /etc/snmp/snmpd.conf 为了测试,这里设置监控所有: # Make at least snmpwalk -v 1 localhost -c ...

    snmpy:可扩展的net-snmp agentx系统

    正在工作的网络snmp代理 已启用AgentX 安装 通过构建deb将SNMPy作为Debian软件包安装: dpkg-buildpackage # or pdebuild 使用标准setuptools脚本安装SNMPy: python setup.py install 行政 SNMPy可以在前台...

    基于python的简易SNMP的管理站工具的实现.zip

    安装net-snmp,详见文档 第1步:创建数据库,数据库名:snmp_master 第2步:执行SQL语句,Navicat打开snmp_master.sql文件,运行该文件中的SQL语句 第3步:源码文件为snmp_master.zip,修改源代码中的util/...

    cacti+nagios+npc+nconf.docx

    cacti安装与使用 一、 安装lamp cacti yum install httpd* yum install mysql* php php-mysql* mod_ssl mod_mod_auth_mysql mod_auth_mysql mod_perl ...yum install net-snmp* yum install vsftpd

    Linux 主机实现对网卡流量的监控.txt

    # yum -y install net-snmp* 修改snmpd.conf # vim /etc/snmp/snmpd.conf com2sec notConfigUser 127.0.0.1(localhost也可不改) XXXX(共同体名) access notConfigGroup "" any noauth exact mib2 none none #改...

    Zabbix基于snmp实现监控linux主机

    前言:  linux主机的话还是比较好处理的,无论是安装agent代理程序还是使用snmp,都是比较...[root@cinder snmp]# yum install net-snmp 2.根据需要修改配置文件中的团体名: 3.启动snmp服务: 二、server端的配置

    Zabbix使用SNMP方式监控Linux

    Zabbix使用SNMP方式监控Linux SNMP简介 简单网络管理协议(SNMP)是TCP/IP协议簇的一个应用层协议,工作在UDP 161端口,用于监控目标设备的操作系统、硬件设备、服务...yum install -y net-snmp-devel # 然后编译 ./c

    linux下的snmp测试脚本

    http://net-snmp.sourceforge.net/ - v6eval (Required version : 3.0.11 or higher) Please refer to 00README.v6eval in "v6eval" for more information. *** You can download it from the following ...

Global site tag (gtag.js) - Google Analytics