First, you can enter/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. += =/usr/lib64/libjpeg.so. +(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- -. 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)
The results shown here are found in libiconv.so. 2 = not found
to the http://www.gnu.org/software/libiconv/download libiconv Library
$./configure--prefix=/usr/make doinstall
And then execute
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. += =/usr/lib64/libjpeg.so. +(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- -. 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
Troubleshoot page access errors such as status Map,trends after Nagios installation