网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

nagios+centreon总结之第七章——CentreonCLAPI安装

1.简介

Centreon CLAPI 是centreon 命令行接口,可以替代在网页上的许多工作。

目前成都创新互联已为上千余家的企业提供了网站建设、域名、网页空间、网站改版维护、企业网站设计、历城网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

命令行还是非常方便的。

 

2.安装

wget http://download.centreon.com/Modules/CLAPI/centreon-clapi-1.5.2.tar.gz

tar -axf centreon-clapi-1.5.2.tar.gz -C /usr/local/src/

cd /usr/local/src/centreon-clapi-1.5.2/

./install.sh -i

[root@master-perofu   centreon-clapi-1.5.2]# ./install.sh -i

 

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

#                                                                               #

#              Module : Centreon CLAPI version   1.5                    #

#                                                                             #

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

------------------------------------------------------------------------

        Checking all needed binaries

------------------------------------------------------------------------

rm                                                           OK

cp                                                           OK

mv                                                           OK

/bin/chmod                                                   OK

/bin/chown                                                   OK

echo                                                         OK

more                                                         OK

mkdir                                                      OK

find                                                         OK

/bin/grep                                                    OK

/bin/cat                                                     OK

/bin/sed                                                   OK

 

------------------------------------------------------------------------

        Load parameters

------------------------------------------------------------------------

Please specify the directory that contains "instCentWeb.conf"

> /etc/centreon/               

 

------------------------------------------------------------------------

        Centreon CLAPI Module Installation

------------------------------------------------------------------------

Replacing   macros                                           OK

Setting   right                                                OK

Setting   owner/group                                        OK

Create   module directory                                    OK

Copying   module                                             OK

Delete   temp install directory                              OK

 

The   centreon-clapi.1.5 installation is finished            OK

See   README and the log file for more details.

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

#                                                                               #

#      Please go to the URL :   http://your-server/centreon/                    #

#                       to finish the setup                                   #

#                                                                               #

#                                                                               #

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

 nagios+centreon总结之第七章——Centreon CLAPI安装

 nagios+centreon总结之第七章——Centreon CLAPI安装

nagios+centreon总结之第七章——Centreon CLAPI安装

cd /usr/local/centreon/www/modules/centreon-clapi/core

vi centreon

                  require_once "$centreon_etc/centreon.conf.php";

改为:

                  require_once "/etc/centreon/centreon.conf.php";

 

ln -s /usr/local/centreon/www/modules/centreon-clapi/core/centreon /usr/local/bin/

[root@master-perofu   core]# centreon  

Centreon   version 2.1.8 - Copyright Merethis - www.centreon.com

This   software comes with ABSOLUTELY NO WARRANTY. This is free software,

and   you are welcome to modify and redistribute it under the GPL license

 

usage:   ./centreon -u   -p [-s] -o -a   [-v]

  -s      Use SHA1 on password (default is MD5)

  -v      variables

  -h      Print help

  -V      Print version

  -o      Object type

  -a      Launch action on Centreon

     Actions are the followings :

       - POLLERGENERATE: Build nagios   configuration for a poller (poller id in -v parameters)

           #> ./centreon -u   -p -a POLLERGENERATE -v 1

       - POLLERTEST: Test nagios   configuration for a poller (poller id in -v parameters)

           #> ./centreon -u   -p -a POLLERTEST -v 1

       - CFGMOVE: move nagios configuration   for a poller to final directory (poller id in -v parameters)

           #> ./centreon -u   -p -a CFGMOVE -v 1

       - POLLERRESTART: Restart a poller   (poller id in -v parameters)

           #> ./centreon -u   -p -a POLLERRESTART -v 1

       - POLLERRELOAD: Reload a poller   (poller id in -v parameters)

           #> ./centreon -u   -p -a POLLERRELOAD -v 1

       - POLLERLIST: list all pollers

           #> ./centreon -u   -p -a POLLERLIST

 

   For more information about configuration   objects, please refer to CLAPI wiki:

      -   http://documentation.centreon.com/docs/centreon-clapi/

 

Notes:

  - Actions can be written in lowercase chars

  - LOGIN and PASSWORD is an admin account of   Centreon

 

      至此,centreon 命令行接口就安装完成了,接下来,我们就开始使用centreon,完成工作。


本文题目:nagios+centreon总结之第七章——CentreonCLAPI安装
当前路径:http://bjjierui.cn/article/iehisd.html

其他资讯