2016-06-17 11 views
2

おはよう、NagiosはCLI上で動作していますが、Web Interface上で動作していません

Nagiosの設定に問題があります。これは、サービスのnagiosの状態の応答です:

[email protected]:~# service nagios status 
● nagios.service - LSB: Starts and stops the Nagios monitoring server 
    Loaded: loaded (/etc/init.d/nagios) 
    Active: active (running) since ven. 2016-06-17 09:47:46 CEST; 41min ago 
    Process: 458 ExecStart=/etc/init.d/nagios start (code=exited, status=0/SUCCESS) 
    CGroup: /system.slice/nagios.service 
      ├─533 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios... 
      ├─553 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/... 
      ├─555 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/... 
      ├─556 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/... 
      ├─558 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/... 
      ├─559 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/... 
      ├─560 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/... 
      └─623 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios... 

juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: nerd: Channel opathchecks r...y 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: nerd: Fully initialized and...! 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: wproc: Successfully registe...r 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: wproc: Registry request: na...3 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: wproc: Registry request: na...8 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: wproc: Registry request: na...9 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: wproc: Registry request: na...6 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: wproc: Registry request: na...0 
juin 17 09:47:46 SRV-SUPERVISION-BT nagios[533]: wproc: Registry request: na...5 
juin 17 09:47:48 SRV-SUPERVISION-BT nagios[533]: Successfully launched comma...3 
Hint: Some lines were ellipsized, use -l to show in full. 

しかし、私は、Webインターフェイス上でつもりだとき、Nagiosのコアが実行されていません。

Nagios Web interface not running screenshot

設定試験コマンドも右である:私は

[email protected]:/usr/local/nagios/bin# ls /usr/local/nagios/var -l 
total 88 
drwxrwsr-x 2 nagios nagios 4096 juin 16 23:59 archives 
-rw-r--r-- 1 nagios nagios 34 juin 17 11:00 nagios.configtest 
-rw-r--r-- 1 nagios nagios  4 juin 17 09:47 nagios.lock 
-rw-r--r-- 1 nagios nagios 3007 juin 17 10:47 nagios.log 
-rw-r--r-- 1 nagios nagios 12665 juin 17 09:47 objects.cache 
-rw-r--r-- 1 nagios nagios 12665 juin 17 11:00 objects.precache 
-rw------- 1 nagios nagios 13062 juin 17 10:47 retention.dat 
drwxrwsr-x 2 nagios nagcmd 4096 juin 17 09:47 rw 
drwxr-sr-x 3 root nagios 4096 juin 3 08:28 spool 
-rw-rw-r-- 1 nagios nagios 13485 juin 17 11:26 status.dat 

[email protected]:~# service nagios configtest 

Nagios Core 4.1.1 
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors 
Copyright (c) 1999-2009 Ethan Galstad 
Last Modified: 08-19-2015 
License: GPL 

Website: https://www.nagios.org 
Reading configuration data... 
    Read main config file okay... 
    Read object config files okay... 

Running pre-flight check on configuration data... 

Checking objects... 
    Checked 8 services. 
    Checked 1 hosts. 
    Checked 1 host groups. 
    Checked 0 service groups. 
    Checked 1 contacts. 
    Checked 1 contact groups. 
    Checked 24 commands. 
    Checked 5 time periods. 
    Checked 0 host escalations. 
    Checked 0 service escalations. 
Checking for circular paths... 
    Checked 1 hosts 
    Checked 0 service dependencies 
    Checked 0 host dependencies 
    Checked 5 timeperiods 
Checking global event handlers... 
Checking obsessive compulsive processor commands... 
Checking misc settings... 

Total Warnings: 0 
Total Errors: 0 

Things look okay - No serious problems were detected during the pre-flight check 
Object precache file created: 
/usr/local/nagios/var/objects.precache 

はまた、これは私は/ usr/local/nagiosには/ varの権利でありますDebianで:

[email protected]:~# uname -a 
Linux SRV-SUPERVISION-BT 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux 

私はこの問題を理解していません。誰かが私を助けることができる場合は、事前に感謝します。

答えて

0

あなたはfcgiwrapをインストールする必要がありfcgiwrapを実行/インストールし、Webサーバapache/nginx/..

0

まずそれを使用する必要があります。

enter image description here

あなたのパッケージマネージャを使用する必要があり、あなたのディストリビューションによっては。

その後、あなたは、Apacheで、examleために、WebサーバーでCGIモジュールを有効にする必要があります。

enter image description here

最後に、apacheの再起動とit'sは仕事でなければなりません。

関連する問題