成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

ncpa安裝

安裝

NCPA為所有的目標(biāo)平臺(tái)準(zhǔn)備了安裝包。包括windows,linux RRM 和 DEB包,除此之外也為其他較少使用的操作系統(tǒng)準(zhǔn)備了tarballs。NCPA不支持未知的平臺(tái)。NCPA包為所有的目標(biāo)平臺(tái)提供了一個(gè)非常簡(jiǎn)便的安裝方法,這個(gè)文檔將通過(guò)例子來(lái)講述如何安裝NCPA.

我們提供的服務(wù)有:成都做網(wǎng)站、成都網(wǎng)站設(shè)計(jì)、微信公眾號(hào)開(kāi)發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、雙城ssl等。為上千余家企事業(yè)單位解決了網(wǎng)站和推廣的問(wèn)題。提供周到的售前咨詢(xún)和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的雙城網(wǎng)站制作公司

首先這里講述的是如何進(jìn)行簡(jiǎn)便安裝,如果你有一個(gè)很復(fù)雜的環(huán)境,你或許得跳過(guò)這里。除非你知道該如何去做,在這里并不存在很復(fù)雜的安裝NCPA的方法

注意

這并不是一個(gè)能適應(yīng)任何情況的指南,也許你應(yīng)該調(diào)整你自己防火墻,為NCPA放行5693端口。通常windows會(huì)自動(dòng)放行這個(gè)端口,就象MAC OS 一樣。請(qǐng)你時(shí)刻記住這一點(diǎn),當(dāng)首次安裝后出現(xiàn)不能工作的情況,請(qǐng)檢查這一點(diǎn)。

在windows中安裝NCPA

首先下載安裝程序到機(jī)器中。安裝程序下載地址:NCPA’s Windows Installer link.

圖形化安裝

安裝程序下載以后,雙擊安裝程序,同意license后,你將會(huì)看到一個(gè)配置界面,這是詢(xún)問(wèn)你填配置信息。

ncpa安裝

NCPA作為一個(gè)代理的時(shí)候,僅需要填寫(xiě)一個(gè)簡(jiǎn)單的進(jìn)入token 到文本框中就可以單擊下一步了。 你必須記住這個(gè)token,在配置Nagios XI向?qū)Щ蚴褂胏heck_ncpa.py plugin 需要用到它.如果你是安裝這個(gè)代理發(fā)送被動(dòng)的檢查結(jié)果給Nagios,有額外的信息需要填寫(xiě)。 

  • Token - NCPA 使用它用來(lái)做身份驗(yàn)證。你需要這個(gè)token當(dāng)你安裝配置 Nagios的監(jiān)控代理的時(shí)候。

對(duì)于被動(dòng)代理這個(gè)token不是絕對(duì)必需的,有其他的參數(shù)需要指定:

  • NRDP URL

  • 這個(gè)URL是NCPA 作為被動(dòng)代理發(fā)送檢查結(jié)果的目標(biāo)。對(duì)于主動(dòng)代理這個(gè)是不需要的。

    • NRDP Token

    • 這是NRDP身份驗(yàn)證的token值。作為被動(dòng)代理時(shí)需要填寫(xiě)。

  • Hostname

  • 這個(gè)主機(jī)名是代理將報(bào)告發(fā)回nagios需要填寫(xiě)的主機(jī)名,由nagios進(jìn)行定義。

    Config Name

  • This is the NRDS config name that the agent will request when contacting the NRDS server.

注意:

如果你使用被動(dòng)檢查,在初始安裝的時(shí)候"NRDP token"由NRDP與NRDS共用。如果這個(gè)值請(qǐng)編ncpa.cfg. 

寂靜安裝

windows安裝包也支持寂靜安裝,效果與GUI安裝相同。

注意:

寂靜安裝請(qǐng)求在命令行實(shí)用 /S 參數(shù)。同時(shí)跟隨其他參數(shù),如:

/<directive>="<value>"

這些參數(shù)都可以在命令行下使用

  • TOKEN

  • The token that will be used to access the agent’s API and web interface.

  • NRDPURL

  • This specifies the NRDP URL to use if passive checks are being implemented.

  • NRDPTOKEN

  • This is the token that will be used to authenticate NRDP passive checks and to authenticate with NRDS.

  • HOST

  • The host that the passive agent will report back as.

  • CONFIG

  • The name of the NRDS config the agent will be associated with.

這里有一個(gè)使用寂靜安裝的例子 TOKEN ‘fishingrocks’:

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

Note

所有這些值都可以在安裝完之后,很容易的改變。當(dāng)感覺(jué)到這些安裝參數(shù)通過(guò)后,請(qǐng)記錄下來(lái)。

現(xiàn)在NCPA服務(wù)已經(jīng)安裝完畢并啟動(dòng)。

To test your installation see Testing Your Installation.

使用RPM包安裝NCPA

首先根據(jù)操作系統(tǒng)類(lèi)型下載對(duì)應(yīng)的RPM安裝包。

    • 32-bit

    • 64-bit

    • CentOS 5.x

    • 32-bit

    • 64-bit

    • CentOS 6.x

    • 64-bit

    • CentOS 7.0

    • 32-bit

    • 64-bit

    • openSUSE 13.x

Note

這些RPM或許未能覆蓋你的系統(tǒng),或者在你的系統(tǒng)上無(wú)法工作,你可以從git上獲取源代碼進(jìn)行build。

這是一個(gè)使用rpm進(jìn)行安裝例子,當(dāng)然你也可以使用yum或zypper也一樣。

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

現(xiàn)在NCPA 服務(wù)經(jīng)安裝并啟動(dòng) 。

你需要編輯  /usr/local/ncpa/etc/ncpa.cfg 去指定一個(gè)通訊字符串  在  [api] section 中 ,設(shè)置 你自己的  token:

[api]
community_string=<your token>

更改ncpa.cfg之后,需要重新啟動(dòng) ncpa_listener.重啟命令 :

/etc/init.d/ncpa_listener restart

To test your installation see Testing Your Installation.

使用 DEB Packaging安裝 NCPA

下載安裝包 

    • 32-bit

    • 64-bit

    • Debian/Ubuntu

安裝命令 

dpkg -i <path to the NCPA deb>

修改  /usr/local/ncpa/etc/ncpa.cfg 中的通訊字符串 ,在  [api] section 中 設(shè)置你自己的 token:

[api]community_string=XXXXXX

重啟動(dòng)服務(wù) 

/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:

  • Creates the folder /usr/local/ncpa if it does not exist

  • Moves all necessary files there

  • Sets the owner of /usr/local/ncpa to nagios:nagcmd

  • Sets the mode of /usr/local/ncpa to 775

  • Creates the group nagcmd if it does not exist

  • Creates the user nagios if it does not exist

  • Starts the listener daemon

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’.

測(cè)試你的安裝結(jié)果 

Warning

配置防火墻放行  5693 端口 

你需要知道以下信息 

  • 代理者 IP

  • 在  [api] 中定義的  community_string (這個(gè)  token field 在  Windows Installer時(shí)定義 )

打開(kāi)瀏覽器輸入 https://ip:5693, 如果提示你輸入 token意味著安裝成功 .

分享文章:ncpa安裝
標(biāo)題URL:http://jinyejixie.com/article12/jogpdc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃、企業(yè)網(wǎng)站制作網(wǎng)站營(yíng)銷(xiāo)、、電子商務(wù)、網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都app開(kāi)發(fā)公司
桂林市| 滕州市| 交口县| 邵阳县| 信宜市| 信丰县| 孝义市| 东源县| 永嘉县| 泽库县| 海盐县| 城步| 察雅县| 滨海县| 维西| 普定县| 威宁| 文昌市| 赤城县| 北海市| 依兰县| 嵊泗县| 鲁山县| 石门县| 汉阴县| 出国| 陈巴尔虎旗| 衡水市| 溧水县| 镇赉县| 台州市| 上饶市| 安吉县| 阜平县| 吉木萨尔县| 卢湾区| 车致| 青神县| 潼关县| 屯昌县| 集安市|