在 Ubuntu 上建置 Nagios 時,可用 Nginx 取代 Apache 提供 Web 介面。安裝流程包含 Nagios 主程式、nagios-plugins、nrpe、Nginx、php5-fpm 與 fcgiwrap。
useradd -m -s /bin/bash nagios ./configure --prefix=/usr/local/nagios --with-command-group=nagcmd make make install make install-init make install-config make install-commandmode
Nginx 設定需將 /usr/local/nagios/share 與 sbin 的 PHP、CGI 請求導向 php5-fpm 與 fcgiwrap,並加入 auth_basic 認證。

若 nrpe 編譯出現 Cannot find ssl libraries,可建立 libssl.so 的 symbolic link。若頁面提示沒有權限,可將 cgi.cfg 的 use_authentication 改為 0,或重新確認授權用戶。

