Kamis, 06 September 2018

How to Install check mk agent from repo on linux centos 6

  Tidak ada komentar
Running command for install epel release repo
[[email protected] ~]#
[[email protected] ~]# sudo yum install epel-release
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                              |  43 kB     00:00
 * base: centos.biz.net.id
 * epel: del-repos.extreme-ix.org
 * extras: centos.biz.net.id
 * remi: fr2.rpmfind.net
 * remi-safe: fr2.rpmfind.net
 * updates: centos.biz.net.id
base                                                                                       | 3.7 kB     00:00
epel                                                                                       | 3.2 kB     00:00
epel/primary                                                                         | 3.2 MB     00:02
epel                                                                                       12521/12521
epel-httpd24                                                                          | 2.9 kB     00:00
extras                                                                                     | 3.4 kB     00:00
remi                                                                                       | 2.9 kB     00:00
remi/primary_db                                                                   | 2.2 MB     00:02
remi-safe                                                                                  | 2.9 kB     00:00
updates                                                                                    | 3.4 kB     00:00
upgrade                                                                                    | 1.9 kB     00:00
Package epel-release-6-8.noarch already installed and latest version
Nothing to do
[[email protected] ~]#
Running the command install xinetd
[[email protected] ~]#
[[email protected] ~]# sudo yum install xinetd
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.biz.net.id
 * epel: del-repos.extreme-ix.org
 * extras: centos.biz.net.id
 * remi: fr2.rpmfind.net
 * remi-safe: fr2.rpmfind.net
 * updates: centos.biz.net.id
Package 2:xinetd-2.3.14-40.el6.x86_64 already installed and latest version
Nothing to do
[[email protected] ~]#


Testing the check mk agent by running it directly

[[email protected] ~]#
[[email protected] ~]# check_mk_agent
<<<check_mk>>>
Version: 1.2.6p16
AgentOS: linux
AgentDirectory: /etc/check-mk-agent
DataDirectory: /var/lib/check_mk_agent
SpoolDirectory: /var/lib/check_mk_agent/spool
PluginsDirectory: /usr/share/check-mk-agent/plugins
LocalDirectory: /usr/share/check-mk-agent/local
<<<df>>>
/dev/mapper/VolGroup-lv_root ext4    100660656 4179076  91361580       5% /
tmpfs                        tmpfs     8158952       0   8158952       0% /dev/shm
/dev/sda1                    ext4       487652   73636    388416      16% /boot
/dev/mapper/VolGroup-lv_data ext4    942357036   73440 894407912       1% /data
/dev/mapper/VolGroup-lv_home ext4      4908544  298296   4354248       7% /home


Restart xinetd service for reload the config include the check mk config file
[[email protected] ~]#
[[email protected] ~]# sudo service xinetd restart
Stopping xinetd:                                           [FAILED]
Starting xinetd:                                           [  OK  ]
[[email protected] ~]#
[[email protected] ~]#
Testing check mk agent by telnet port 6556 on localhost
[[email protected] ~]# telnet localhost 6556
Trying ::1...
Connected to localhost.
Escape character is '^]'.
<<<check_mk>>>
Version: 1.2.6p16
AgentOS: linux
AgentDirectory: /etc/check-mk-agent
DataDirectory: /var/lib/check_mk_agent
SpoolDirectory: /var/lib/check_mk_agent/spool
PluginsDirectory: /usr/share/check-mk-agent/plugins
LocalDirectory: /usr/share/check-mk-agent/local
OnlyFrom:
<<<df>>>
/dev/mapper/VolGroup-lv_root ext4    100660656 4178868  91361788       5% /


Tidak ada komentar :

Posting Komentar