f Nagios Core 3.5 升級至 4.4.5 ~ 迪貝之家

Pages

Nagios Core 3.5 升級至 4.4.5

compile 完source 之後
用nagios 4的binary 跑3.5的設定檔
看有沒有錯誤
有錯誤的話,想辦法修正掉就好了
warning可以不用理它
像我的環境檢核指令如下
/home/nagios/bin/nagios -v /etc/nagios3/nagios.cfg
上述指令的解釋
Nagios Configuration Check

錯誤的example如下:
Error: Empty value for contact_groups (config file '/etc/nagios3/objects/templates/She-generic-service.cfg', starting on line 2)
Error: Could not add object property in file '/etc/nagios3/objects/templates/She-generic-service.cfg' on line 6.
Error: Invalid max_check_attempts value for host '3GBT'
Error: Could not register host (config file '/etc/nagios3/objects/services/MSSQL/steven/PG_hosts.cfg', starting on line 27)
ERROR修正完之後
把nagios.cfg 及apache password 檔拷貝到你指定的位置後
把nagios 開起來就可以了
systemctl start nagios
web介面的存取改為
http://yourhost/nagios
其他還是一樣沿用原有nagios3的設定檔的位置
systemctl status nagios