91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

nagios監控

發布時間:2020-07-19 11:08:48 來源:網絡 閱讀:495 作者:sxingxing 欄目:移動開發

139  yum install gd-devel-2.0.35-11.el6.x86_64.rpm  -y

  140  ls

  142  tar jxf  nagios-cn-3.2.3.tar.bz2  

  143  cd nagios-cn-3.2.3

  144  ls

  145  vim INSTALLING.zh_CN.UTF8

  149  yum search Chinese

  150  yum install cjkuni-ukai-fonts.noarch  cjkuni-uming-fonts.noarch -y

  151  useradd nagios

  152  id nagios

  153  echo nagios:westos|chpasswd

  154  groupadd nagcmd

  155  usermod -G nagcmd nagios

  156  usermod -G nagcmd apache

  157  id apache

  158  rpm -q httpd

  159  ./configure --with-command-group=nagcmd

  160  yum install gcc -y

  161  ./configure --with-command-group=nagcmd

  162  make all

  163  make install

  164  make install-init

  165  make install-commandmode

  166  make install-config

  167  make install-webconf

  168  chkconfig  nagios on

  169  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg ##檢查文件配置

  170  vim /usr/local/nagios/etc/htpasswd.users

  171  cat  /usr/local/nagios/etc/htpasswd.users

  172  htpasswd  -m /usr/local/nagios/etc/htpasswd.users  nagiosadmin

  173  cat /etc/httpd/conf.d/nagios.conf

  174  /etc/init.d/httpd restart

  175  /etc/init.d/nagios  start

  176  cd

  177  ls

  179  tar zxf  nagios-plugins-2.1.1.tar.gz

  180  cd nagios-plugins-2.1.1

  181  ls

  182  vim INSTALL

  183  ./configure --help

  184  ./configure --with-nagios-user=nagios --with-nagios-group=nagios

  185  ./configure --with-nagios-user=nagios --with-nagios-group=nagios --enable-perl-modules --enable-libtap

  186  make

  187  yum install perl-ExtUtils-MakeMaker -y

  188  make

  189  make install

  190  /etc/init.d/nagios  reload

 

  198  cd /usr/local/nagios/

  199  ls

  200  cd bin/

  201  ls

  202  cd nagios

  203  cd ..

  204  cd etc/

  205  ls

  207  vim nagios.cfg

cfg_file=/usr/local/nagios/etc/objects/hosts.cfg

cfg_file=/usr/local/nagios/etc/objects/services.cfg

 

# Definitions for monitoring the local (Linux) host

# cfg_file=/usr/local/nagios/etc/objects/localhost.cfg

  208  cd objects/

  209  ls

  210  cp localhost.cfg   hosts.cfg

  211  vim hosts.cfg

define host{

        use                     linux-server

        host_name               server1.example.com

        alias                   Manager

#       parents                 MainSwitch

        address                 172.25.41.1

        icon_p_w_picpath              server.gif

        statusmap_p_w_picpath         server.gd2

        2d_coords               500,200

        3d_coords               500,200,100

        }

#####################################

define hostgroup{

        hostgroup_name  linux-servers ; The name of the hostgroup

        alias           Linux Servers ; Long name of the group

        members         *     ; Comma separated list of hosts that belong to this group

        }

 

  212  cp localhost.cfg  services.cfg

  213  vim services.cfg

define servicegroup{

        servicegroup_name 系統負荷檢查

        alias 負荷檢查

        members server1.example.com,進程總數,server1.example.com,登錄用戶數,server1.example.com,根分區,server1.example.com,交換空間利用率

        }     ##***全文替換%s//server1.example.com/g

 

  214  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

  215  vim services.cfg

  216  cp localhost.cfg  services.cfg

  217  vim services.cfg

  218  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

  219  /etc/init.d/nagios  restart

  220  /etc/init.d/httpd restart

  221  echo www.westos.org > /var/www/html/index.html

  222  /etc/init.d/httpd restart

  223  cd

  224  ls

  225  rpm -ivh  rrdtool-perl-1.3.8-6.el6.x86_64.rpm  

  226  tail -f /var/log/httpd/error_log

  227  yum install perl-CGI

  228  /etc/init.d/nagios  reload

  229  /etc/init.d/httpd restart

  230  /etc/init.d/nagios  restart

  231  /etc/init.d/httpd restart 


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

泽州县| 邵东县| 凤阳县| 略阳县| 乐清市| 西华县| 宁都县| 巴林右旗| 临潭县| 凤阳县| 北安市| 青川县| 北京市| 虹口区| 双牌县| 达孜县| 桃园市| 屏东县| 温州市| 桑日县| 中江县| 巫山县| 奉节县| 鄂州市| 古田县| 清原| 蛟河市| 邳州市| 漳州市| 龙井市| 崇明县| 拜城县| 资兴市| 和平区| 汉源县| 克山县| 荣成市| 定日县| 庐江县| 华蓥市| 昌黎县|