nagios安装后提示 statusmap.cgi找不到的解决办法

登录nagios webui后,点击map提示错误:

Not Found

The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server.

原因:statusmap.cgi依赖gd-devel开发包。

下载gd-devel对应rpm版本,安装后重新编译cgi部分

进入nagios编译目录

./configure --prefix=/usr/local/nagios

make all

make cgi install