Nagios4.0.8 bug修復

Michael_DD發表於2015-06-01
Nagios4.0.8 bug修復



報錯資訊:
[1383116400] Worker 1277: Unknown jobtype: 10
[1383116400] wproc: Unknown job type: 10
[1383116400] Worker 1279: Unknown jobtype: 10
[1383116400] wproc: Unknown job type: 10
[1383116400] Worker 1278: Unknown jobtype: 10
[1383116400] wproc: Unknown job type: 10




nagios重啟不生效:
[root@nagios init.d]# service nagios stop
Stopping nagios:kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
 done.
[root@nagios init.d]# 




程式號都不更新:


修復補丁介紹:











修復過程:
下載修復包放到原始碼目錄:
bogus_warnings.patch




[root@nagios nagios-4.0.8]# ll
total 692
drwxrwxr-x 2 root root   4096 Jun  1 20:34 base
-rw-r--r-- 1 root root    771 Jun  1 20:25 bogus_warnings.patch
drwxrwxr-x 2 root root   4096 Jun  1 20:34 cgi




[root@nagios nagios-4.0.8]#yum install patch*
[root@nagios nagios-4.0.8]#patch -p1 < bogus_warnings.patch


重新編譯安裝:
[root@nagios nagios-4.0.8]#./configure --prefix=/usr/local/nagios --with-command-group=nagcmd --enable-nanosleep --enable-event-broker --enable-embedded-perl
[root@nagios nagios-4.0.8]#make all&&make install&&make install-init&&make install-commandmode&&make install-config&&make install-webconf


[root@nagios nagios-4.0.8]# service nagios restart
Running configuration check...
Stopping nagios: done.
Starting nagios: done.
[root@nagios nagios-4.0.8]#


正常!!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1681184/,如需轉載,請註明出處,否則將追究法律責任。

相關文章