How to upgrade check mk agent version
Running check mk
[root@traveler ~]# check_mk_agent
<<<check_mk>>>
Version: 1.2.4p3
AgentOS: linux
PluginsDirectory: /usr/lib/check_mk_agent/plugins
LocalDirectory: /usr/lib/check_mk_agent/local
SpoolDirectory: /etc/check_mk/spool
AgentDirectory: /etc/check_mk
<<<df>>>
/dev/mapper/vg_traveler5-LogVol01 ext4 100791728 12224496 83447232 13% /
/dev/sda2 ext4 198337 35356 152741 19% /boot
/dev/sda1 vfat 204580 260 204320 1% /boot/efi
/dev/mapper/vg_traveler5-LogVol03 ext4 132711808 5338044 120632364 5% /local
/dev/mapper/vg_traveler5-LogVol02 ext4 50395844 2567632 45268212 6% /opt
<<<nfsmounts>>>
<<<mounts>>>
/dev/mapper/vg_traveler5-LogVol01 / ext4 rw,relatime,barrier=1,stripe=64,data=ordered 0 0
/dev/sda2 /boot ext4 rw,relatime,barrier=1,stripe=256,data=ordered 0 0
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=cp437,iocharset=ascii,shortname=winnt,errors=remount-ro 0 0
/dev/mapper/vg_traveler5-LogVol03 /local ext4 rw,relatime,barrier=1,stripe=64,data=ordered 0 0
/dev/mapper/vg_traveler5-LogVol02 /opt ext4 rw,relatime,barrier=1,stripe=64,data=ordered 0 0
<<<ps>>>
From the result above indicate that check mk agent version is 1.2.43
Install newer check mk agent by running yum as shown on following figure
[root@traveler ~]# yum install http://192.168.70.250/monitoring/check_mk/agents/check-mk-agent-1.5.0p4-1.noarch.rpm
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
file:///media/rhel6/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/rhel6/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
check-mk-agent-1.5.0p4-1.noarch.rpm | 33 kB 00:00
Examining /var/tmp/yum-root-i97A6y/check-mk-agent-1.5.0p4-1.noarch.rpm: check-mk-agent-1.5.0p4-1.noarch
Marking /var/tmp/yum-root-i97A6y/check-mk-agent-1.5.0p4-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package check-mk-agent.noarch 0:1.5.0p4-1 will be obsoleting
---> Package check_mk-agent.noarch 0:1.2.4p3-1 will be obsoleted
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
check-mk-agent noarch 1.5.0p4-1 /check-mk-agent-1.5.0p4-1.noarch 63 k
replacing check_mk-agent.noarch 1.2.4p3-1
Transaction Summary
======================================================================================================================================
Install 1 Package(s)
Total size: 63 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : check-mk-agent-1.5.0p4-1.noarch 1/2
warning: /etc/xinetd.d/check_mk created as /etc/xinetd.d/check_mk.rpmnew
Activating startscript of xinetd
Reloading xinetd...
Reloading configuration: [ OK ]
Erasing : check_mk-agent-1.2.4p3-1.noarch 2/2
Verifying : check-mk-agent-1.5.0p4-1.noarch 1/2
Verifying : check_mk-agent-1.2.4p3-1.noarch 2/2
Installed:
check-mk-agent.noarch 0:1.5.0p4-1
Replaced:
check_mk-agent.noarch 0:1.2.4p3-1
Complete!
[root@traveler ~]#
Check mk version was updated to 1.5.0.4, and xinetd service was restarted during installation process
Running check mk agent
[root@traveler5 ~]# check_mk_agent
<<<check_mk>>>
Version: 1.5.0p4
AgentOS: linux
Hostname: traveler5.dephub.go.id
AgentDirectory: /etc/check_mk
DataDirectory: /var/lib/check_mk_agent
SpoolDirectory: /var/lib/check_mk_agent/spool
PluginsDirectory: /usr/lib/check_mk_agent/plugins
LocalDirectory: /usr/lib/check_mk_agent/local
<<<df>>>
/dev/mapper/vg_traveler5-LogVol01 ext4 100791728 12224428 83447300 13% /
tmpfs tmpfs 66019332 152 66019180 1% /dev/shm
/dev/sda2 ext4 198337 35356 152741 19% /boot
/dev/sda1 vfat 204580 260 204320 1% /boot/efi
/dev/mapper/vg_traveler5-LogVol03 ext4 132711808 5338032 120632376 5% /local
/dev/mapper/vg_traveler5-LogVol02 ext4 50395844 2567632 45268212 6% /opt
The check mk agent result shown the version was updated to 1.5.0.p4
Tidak ada komentar :
Posting Komentar