溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

nagios+cacti+nrpe+nconf整合最后報錯解決

發(fā)布時間:2020-08-16 14:55:50 來源:網(wǎng)絡(luò) 閱讀:958 作者:上官戰(zhàn) 欄目:移動開發(fā)

在web頁面點擊Generate Nagios config后出現(xiàn)了這個錯誤提示

Generating config:
[ Initializing NConf perl-API (library version 0.2, written by A. Gargiulo) ]
[ Copyright (c) 2006-2009 Sunrise Communications AG, Zurich, Switzerland   ]


Running syntax check:

  Default_collector: Error generating config
--------------------------------------------------------------------------------
Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-09-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/apache/htdocs/nconf/temp/test/Default_collector.cfg' for reading!
  Error processing main config file!



***> The name of the main configuration file looks suspicious...

  Make sure you are specifying the name of the MAIN configuration file on
  the command line and not the name of another configuration file. The
  main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'

***> One or more problems was encountered while processing the config files...

  Check your configuration file(s) to ensure that they contain valid
  directives and data defintions. If you are upgrading from a previous
  version of Nagios, you should be aware that some variables/definitions
  may have been removed or modified in this version. Make sure to read
  the HTML documentation regarding the config files, as well as the
  'Whats New' section to find out what has changed.



Deployment not possible due to errors in configuration.

 

 

 

筆者的環(huán)境,使用的rhel5.8 32,及光盤源安裝的 http和php,

但是mysql卻是編譯安裝的最新版,

因此nconf的腳本使用的perl無法和mysql交互導(dǎo)致,

因此安裝 perl-DBD-MySQL 即可解決: # yum install perl-DBD-MySQL -y

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI