Nagios安装完后status map,trends等页面访问出错之解决

Posted 巫谢

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nagios安装完后status map,trends等页面访问出错之解决相关的知识,希望对你有一定的参考价值。

首先,可以进入/usr/local/nagios/sbin,
[[email protected] sbin]# ldd statusmap.cgi
        linux-vdso.so.1 =>  (0x00007fffc9ffd000)
        libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002b7199006000)
        libiconv.so.2 => not found
        libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003826e00000)
        libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003825a00000)
        libz.so.1 => /lib64/libz.so.1 (0x000000381ba00000)
        libm.so.6 => /lib64/libm.so.6 (0x000000381b600000)
        libc.so.6 => /lib64/libc.so.6 (0x000000381aa00000)
        libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x000000381be00000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003824200000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x0000003829200000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003826200000)
        /lib64/ld-linux-x86-64.so.2 (0x000000381a600000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003822e00000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x0000003822a00000)
        libdl.so.2 => /lib64/libdl.so.2 (0x000000381ae00000)
        libexpat.so.0 => /lib64/libexpat.so.0 (0x0000003825e00000)

在我这里显示的结果发现   libiconv.so.2 => not found

http://www.gnu.org/software/libiconv/下载libiconv库

$ ./configure --prefix=/usr/local
$ make
$ make install

然后执行

ln -sf /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2
ldconfig
[[email protected] sbin]# ldd statusmap.cgi 
        linux-vdso.so.1 =>  (0x00007fff79bfd000)
        libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002b3196bff000)
        libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00002b3196e53000)
        libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003826e00000)
        libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003825a00000)
        libz.so.1 => /lib64/libz.so.1 (0x000000381ba00000)
        libm.so.6 => /lib64/libm.so.6 (0x000000381b600000)
        libc.so.6 => /lib64/libc.so.6 (0x000000381aa00000)
        libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x000000381be00000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003824200000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x0000003829200000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003826200000)
        /lib64/ld-linux-x86-64.so.2 (0x000000381a600000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003822e00000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x0000003822a00000)
        libdl.so.2 => /lib64/libdl.so.2 (0x000000381ae00000)
        libexpat.so.0 => /lib64/libexpat.so.0 (0x0000003825e00000

 

[[email protected] sbin]# ldd statusmap.cgi

以上是关于Nagios安装完后status map,trends等页面访问出错之解决的主要内容,如果未能解决你的问题,请参考以下文章

nagios Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer:

nagios 自动恢复告警通知

nagios监控cloudstack的主机的状态

linux环境中nagios(nagios core)安装?nagios安装?

Nagios安装说明

NAGIOS插件pnp4nagios安装