Nagios works fine, the various monitoring pages can also be displayed normally, but maps cannot be displayed, prompting the requested url/nagios/cgi-bin/statusmap.cgi is not found on this server. Into the/nagios/cgi-bin/folder found that there is no statusmap.cgi.
Check the Internet, said that it is possible to lack the following installation package,
-
Gd
-
Gd-devel
-
Libpng
-
Libpng-devel
-
Libjpeg
-
Libjpeg-devel
-
Zlib
-
Zlib-devel
Although I do not know what the use of these packages, or check to see which is not installed.
With Rpm-qa | grep command to install the package check again, the original Gd-devel not installed
Install with the Yum install-y gd-devel command, and then go back to Nagios's extracted directory to execute the following command:
#make Devclean
#./configure--with-gd-lib=/usr/lib--with-gd-inc=/usr/include
#./configure--with-command-group=nagcmd
#make all; make install; Makeinstall-init; Make install-config; Make Install-commandmode; Makeinstall-webconf
Restart the Nagios service after you are done, and the ok,maps can be displayed properly!
But suddenly found that the monitoring of the host less one, only localhost, and another remote host can not see!
Did you recompile nagios to overwrite the old configuration file? View the nagios.cfg configuration file,
#vi/usr/local/nagios/etc/nagios.cfg
Sure enough, remote monitoring of the host information has not been added
cfg_file=/usr/local/nagios/etc/objects/mylinux.cfg
After restarting the Nagios service, I got an error, similar to this.
error:service check command ' check_nrpe!check_load ' specified in Service ' CPU load ' for host ' Lucas_nj ' Not defined anywhere!
Error:service check command ' check_nrpe!check_users ' specified in Service ' current users ' for host ' LUCAS_NJ ' not defined anywhere!
Error:service check command ' Check_nrpe!check_total_procs ' specified in Service ' Total Processes ' for host ' lucas_nj ' not Defined anywhere!
Error:service check command ' Check_nrpe!check_zombie_procs ' specified in Service ' zombie Processes ' for host ' LUCAS_NJ ' n OT defined anywhere!
Meaning that the service is not defined, difficult to commands.cfg also be covered? View commands.cfg file
#vi/usr/local/nagios/etc/objects/commands.cfg
obediently, sure enough also covered out, re-added in the commands.cfg file
define command {
Command_name Check_nrpe
Command_line $USER 1$/check_nrpe-h $HOSTADDRESS $-C $ARG 1$
}
Restart the Nagios service and work properly.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/28/7E/wKioL1N5xOXQtMCZAAIJtxZhC2Y381.jpg "title=" 01.png "alt=" Wkiol1n5xoxqtmczaaijtxzhc2y381.jpg "/>
This article is from "Lucas" blog, please be sure to keep this source http://4292565.blog.51cto.com/4282565/1413694