Nagios pnp 配置環境介紹及配置實現方法

來源:互聯網
上載者:User

本文講述了Nagios pnp 配置的詳細內容,希望給大家在Nagios pnp使用方面有所協助,這裡提供了詳細的Nagios pnp 配置,下面一起來看看他的具體內容。

Nagios pnp配置環境:
cetnos5apache2nagios3pnp-0.4.3

安裝過程引用石頭兄的話:
1.compilephpwithzlibandgdoption;
2.configureandmakeinstallthepnp;
3.modifythenagios.cfgandcommand.cfgwiththeprocess_perfdataandhost/service_dataoption;
4.renamePNP‘stemplates.distastemplates;此步驟不是必須的不過改了也沒問題)
5.renameallPNP’scfg_samplefiles_samplesuffix;
6.Action_url:action_url,在2.x中,只能通過serviceextinfo來做。在3.x中,可以通過模板來繼承,因此在3.x中,配置量會減少很多特別是太規模部署時)

本文不詳細介紹Nagios pnp安裝過程:看官方文檔
[url]http://www.pnp4nagios.org/pnp/install[/url]
如果你是用的centos5像zlibgbrrdtool可以直接使用yum
方法來源:linuxtone.org[netseek兄弟]
1.wget[url]http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm[/url]
2.rpm-ivhrpmforge-release-0.3.6-1.el5.rf.i386.rpm
3.yuminstall****

安裝完所有的軟體後需要做一些配置。
1.修改PNP設定檔,開啟日誌預設路徑在:
/usr/local/nagios/var/process_perfdata.cfg
LOG_FILE=/usr/local/nagios/var/perfdata.log
#
#Loglevel0=silent1=normal2=debug
#
LOG_LEVEL=0#本例設定為2使用debug模式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.