The following methods I installed 3 servers, absolutely effective
Monitored side
1
Install the Super Daemon (on Demand)
[[Email protected]~] #yum install xinetd
2
View Super Daemon Open condition
[Email protected] ~]# chkconfig--list |grep xinetd
xinetd
0:off 1:off 2:off 3:on 4:on 5:on 6:off
From there, you can see if xinetd is booting up, and if other processes are hosted under the Super Daemon, this command can also list their startup conditions.
If it is not possible to set boot boot
[[Email protected] ~] #chkconfig--level 2345 xinetd on
3
Installing the Check_mk-agent Plugin
Centos/redhat under
wget http://mathias-kettner.de/download/check_mk-agent-1.2.2p3-1.noarch.rpm
RPM-IVH check_mk-agent-1.2.2p3-1.noarch.rpm
Vim/etc/xinetd.d/check_mk
Service CHECK_MK
{
Type = Unlisted
#flags = IPv4
Port = 6556
Socket_type = Stream
protocol = TCP
wait = no
user = root
Server =/usr/bin/check_mk_agent
# IF You use fully redundant monitoring and poll the client
# from + then one monitoring servers in parallel might
# Want to use the agent cache wrapper:
#server =/usr/bin/check_mk_caching_agent
# Configure the IP address (es) of your Nagios server here:
#only_from = 127.0.0.1 10.0.20.1 10.0.20.2
# Don ' t be too verbose. Don ' t log every check. This might is
# commented out for debugging. If This option was commented out
# The default options would be a used for this service.
Log_on_success =
Disable = no
}
#only_from Join the monitoring side IP to ensure that the monitoring terminal can telnet to the monitored side
Windows under
Http://mathias-kettner.de/download/check-mk-agent-1.2.2p3.exe
The next step is all right.
Enter the installation directory C:\Program FILES\CHECK_MK
Open Check_mk.example.ini
Add the monitor end address after Only_from
4
Monitoring end telnet is monitored 6556
#telnet Monitored end 6556
Install nagios-check-mk-agent under Linux