×

扫描二维码登录本站

QQ登录

只需一步,快速开始

标签: 暂无标签
来自:网络





1.简介
Centreon CLAPI 是centreon 命令行接口,可以替代在网页上的许多工作。                     nagios培训
命令行还是非常方便的。

2.安装
wget [ ttp://download.centreon.com/Modules/CLAPI/centreon-clapi-1.5.2.tar.gz]http://download.centreon.com/Mod ... -clapi-1.5.2.tar.gz[/url]
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
nagios实施
------------------------------------------------------------------------
        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                                   #
#                                                                               #
#                                                                               #
###############################################################################


[ ttp://static.oschina.net/uploads/space/2014/0923/142223_U5Kr_727880.png][/url]
[ ttp://static.oschina.net/uploads/space/2014/0923/142246_kIk7_727880.png][/url]

[ ttp://static.oschina.net/uploads/space/2014/0923/142311_F4Bh_727880.png][/url]


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/                nagios配置

[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   <LOGIN> -p <PASSWORD> [-s] -o <OBJECT> -a <ACTION>   [-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 <LOGIN>   -p <PASSWORD> -a POLLERGENERATE -v 1
       - POLLERTEST: Test nagios   configuration for a poller (poller id in -v parameters)
           #> ./centreon -u <LOGIN>   -p <PASSWORD> -a POLLERTEST -v 1
       - CFGMOVE: move nagios configuration   for a poller to final directory (poller id in -v parameters)
           #> ./centreon -u <LOGIN>   -p <PASSWORD> -a CFGMOVE -v 1
       - POLLERRESTART: Restart a poller   (poller id in -v parameters)
           #> ./centreon -u <LOGIN>   -p <PASSWORD> -a POLLERRESTART -v 1
       - POLLERRELOAD: Reload a poller   (poller id in -v parameters)
           #> ./centreon -u <LOGIN>   -p <PASSWORD> -a POLLERRELOAD -v 1
       - POLLERLIST: list all pollers
           #> ./centreon -u <LOGIN>   -p <PASSWORD> -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安装



想做Nagios Zabbix,Cacti,iTop各种交流的,可以进入开源监控工具Nagios交流  QQ群号 476809427





上一篇:nagios+centreon总结(8)——Centreon 添加nagios检查命令
下一篇:运维监控利器Nagios---nagios配置详解
monicazhang

写了 2297 篇文章,拥有财富 12859,被 21 人关注

您需要登录后才可以回帖 登录 | 立即注册
B Color Link Quote Code Smilies

成为第一个吐槽的人

手机版|小黑屋|最新100贴|论坛版块|ITIL先锋论坛 |粤ICP备11099876号|网站地图
Powered by Discuz! X3.4 Licensed  © 2001-2017 Comsenz Inc.
返回顶部