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


    首先,可以进入/usr/local/nagios/sbin,
    [root@localhost 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
    [root@localhost 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

    [root@localhost sbin]# ldd statusmap.cgi

  • 相关阅读:
    逻辑结算的结果是什么类型?比较运算的值是什么类型?
    算术运算有哪些?逻辑运算有哪些?比较运算有哪些?
    为什么要强制类型转换?什么情况下使用强制类型转换?说说强制类型转换的优点和缺点
    Java中如何强制类型转换
    基本数据类型和引用类型的区别
    Go switch语句
    Go 循环
    Go if_else语句
    Go 包
    Go 函数
  • 原文地址:https://www.cnblogs.com/wuxie1989/p/5508534.html
Copyright © 2020-2023  润新知