ncpa安装

发布时间:2020-06-29 21:01:07 作者:zjyklwg117
来源:网络 阅读:1009

安装

NCPA为所有的目标平台准备了安装包。包括windows,linux RRM 和 DEB包,除此之外也为其他较少使用的操作系统准备了tarballs。NCPA不支持未知的平台。NCPA包为所有的目标平台提供了一个非常简便的安装方法,这个文档将通过例子来讲述如何安装NCPA.

首先这里讲述的是如何进行简便安装,如果你有一个很复杂的环境,你或许得跳过这里。除非你知道该如何去做,在这里并不存在很复杂的安装NCPA的方法

注意

这并不是一个能适应任何情况的指南,也许你应该调整你自己防火墙,为NCPA放行5693端口。通常windows会自动放行这个端口,就象MAC OS 一样。请你时刻记住这一点,当首次安装后出现不能工作的情况,请检查这一点。


在windows中安装NCPA

首先下载安装程序到机器中。安装程序下载地址:NCPA’s Windows Installer link.

图形化安装

安装程序下载以后,双击安装程序,同意license后,你将会看到一个配置界面,这是询问你填配置信息。

ncpa安装

NCPA作为一个代理的时候,仅需要填写一个简单的进入token 到文本框中就可以单击下一步了。 你必须记住这个token,在配置Nagios XI向导或使用check_ncpa.py plugin 需要用到它.如果你是安装这个代理发送被动的检查结果给Nagios,有额外的信息需要填写。 

对于被动代理这个token不是绝对必需的,有其他的参数需要指定:

注意:

如果你使用被动检查,在初始安装的时候"NRDP token"由NRDP与NRDS共用。如果这个值请编ncpa.cfg. 

寂静安装

windows安装包也支持寂静安装,效果与GUI安装相同。

注意:


寂静安装请求在命令行实用 /S 参数。同时跟随其他参数,如:

/<directive>="<value>"

这些参数都可以在命令行下使用

这里有一个使用寂静安装的例子 TOKEN ‘fishingrocks’:

ncpa-<version>.exe /S /TOKEN='fishingrocks'

Note

所有这些值都可以在安装完之后,很容易的改变。当感觉到这些安装参数通过后,请记录下来。

现在NCPA服务已经安装完毕并启动。

To test your installation see Testing Your Installation.

使用RPM包安装NCPA

首先根据操作系统类型下载对应的RPM安装包。

Note

这些RPM或许未能覆盖你的系统,或者在你的系统上无法工作,你可以从git上获取源代码进行build。

这是一个使用rpm进行安装例子,当然你也可以使用yum或zypper也一样。

rpm -ivh --nomd5 <path to the NCPA RPM>

现在NCPA 服务经安装并启动 。

你需要编辑  /usr/local/ncpa/etc/ncpa.cfg 去指定一个通讯字符串  在  [api] section 中 ,设置 你自己的  token:

[api]
community_string=<your token>

更改ncpa.cfg之后,需要重新启动 ncpa_listener.重启命令 :

/etc/init.d/ncpa_listener restart

To test your installation see Testing Your Installation.

使用 DEB Packaging安装 NCPA

下载安装包 

安装命令 

dpkg -i <path to the NCPA deb>

修改  /usr/local/ncpa/etc/ncpa.cfg 中的通讯字符串 ,在  [api] section 中 设置你自己的 token:

[api]community_string=XXXXXX

重启动服务 

/etc/init.d/ncpa_listener restart

To test your installation see Testing Your Installation.

在  Mac OS X 上安装 

Note

The install process on Mac OS X is still experimental. If you would like to help make this process better, please get in contact with the author (whose address can be found at the bottom of the page.)

Download the DMG here .

Download the NCPA DMG here . You will need to log in as root, or at least as a user who can run commands as root to continue with the installation. Then, depending on where you installed it (we will assume you downloaded it to your /tmp directory), run the following commands:

cd /tmp
hdiutil attach /tmp/ncpa-<version>.dmg
sudo zsh /Volumes/NCPA-<version>/install.sh

What this script does:

If any of this fails, you will need to do the steps manually. The steps that may fail most often are adding users and groups. If they do, add the user ‘nagios’ and make sure the group ‘nagcmd’ exists and that ‘nagios’ user is in the group ‘nagcmd’.

测试你的安装结果 

Warning

配置防火墙放行  5693 端口 

你需要知道以下信息 

打开浏览器输入 https://ip:5693, 如果提示你输入 token意味着安装成功 .


推荐阅读:
  1. PHPstudy 安装redis扩展 以及安装redis
  2. Hbase安装-单机安装

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

nagios ncpa 安装

上一篇:Oracle 表和表数据恢复

下一篇:Nginx虚拟主机相关配置详解

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》