亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 3645 | 回復(fù): 4
打印 上一主題 下一主題

Nagios 3.x添加新的網(wǎng)絡(luò)設(shè)備配置文件出錯(cuò) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-12-20 19:27 |只看該作者 |倒序?yàn)g覽
我的配置文件是:
  1. # cat etc/switches/hqcore1.cfg
  2. define host {
  3. host_name HQ-Core1
  4. alias 3COM 5500-EI
  5. address 192.168.0.1
  6. contact_groups Core-Switches
  7. check_command check-host-alive
  8. max_check_attempts 5
  9. notification_interval  3
  10. notification_period 24x7
  11. notification_options d,u,r
  12. }
復(fù)制代碼


檢查配置文件總出錯(cuò),郁悶:

  1. # nagios -v switches/hqcore1.cfg

  2. Nagios 3.0.6
  3. Copyright (c) 1999-2008 Ethan Galstad ([url]http://www.nagios.org[/url])
  4. Last Modified: 12-01-2008
  5. License: GPL

  6. Reading configuration data...

  7. Error in configuration file '/usr/local/nagios/etc/switches/hqcore1.cfg' - Line 1 (NULL value)

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

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

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

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

論壇徽章:
5
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-10 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-24 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-12 06:20:00
2 [報(bào)告]
發(fā)表于 2008-12-20 21:15 |只看該作者
hqcore1.cfg' - Line 1 (NULL value)

不過(guò)對(duì)這個(gè)軟件實(shí)在是不懂。你根據(jù)提示檢查一下,另外不會(huì)是在WIN下編輯的文件吧。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2008-12-22 08:59 |只看該作者

回復(fù) #2 ssffzz1 的帖子

不是的,是通過(guò)ssh直接連接到linux下做的,還要花的時(shí)間研究一下。。。謝謝!

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2008-12-25 15:20 |只看該作者
嘎嘎,我這也是那德行,3.X的不知道怎么搞的.動(dòng)不動(dòng)就報(bào)define host {出錯(cuò)....,即使不是那的錯(cuò)..也報(bào)..
我的是不能把所有的主機(jī)加到一個(gè)組中...

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2009-10-14 10:47 |只看該作者
應(yīng)該是這個(gè)nagios.cfg

nagios -v nagios.cfg

不要檢查具體配置文件,要檢查主配置文件
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP