не получается
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-358.el6.i686 #1 SMP Thu Feb 21 21:50:49 UTC 2013 i686 i686 i386 GNU/Linux
[root@localhost ~]# yum localinstall zabbix-agent-2.4.0-1.el6.i386.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining zabbix-agent-2.4.0-1.el6.i386.rpm: zabbix-agent-2.4.0-1.el6.i386
Marking zabbix-agent-2.4.0-1.el6.i386.rpm to be installed
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
[root@localhost ~]#
Олег Цилюрик: вот еще
[root@localhost ~]# yum localinstall zabbix-agent-2.4.7-1.el6.i686.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining zabbix-agent-2.4.7-1.el6.i686.rpm: zabbix-agent-2.4.7-1.el6.i686
Marking zabbix-agent-2.4.7-1.el6.i686.rpm to be installed
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.i686 0:2.4.7-1.el6 will be installed
--> Processing Dependency: zabbix for package: zabbix-agent-2.4.7-1.el6.i686
--> Finished Dependency Resolution
Error: Package: zabbix-agent-2.4.7-1.el6.i686 (/zabbix-agent-2.4.7-1.el6.i686)
Requires: zabbix
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@localhost ~]#
Andrey San:
Ну так у вас просто не удовлетворённая зависимость: zabbix
При локальной установке из .rpm не удовлетворённые зависимости не разрешаются, и вы всё это последовательно должны установить сами (хоть локально, хоть из сети).
Олег Цилюрик: чет ничего не получается, вот смотрите пробую поставить nano:
[root@localhost ~]# yum localinstall nano-2.4.2-2.fc23.i686.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining nano-2.4.2-2.fc23.i686.rpm: nano-2.4.2-2.fc23.i686
Marking nano-2.4.2-2.fc23.i686.rpm to be installed
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package nano.i686 0:2.4.2-2.fc23 will be installed
--> Processing Conflict: nano-2.4.2-2.fc23.i686 conflicts filesystem < 3
No package matched to upgrade: nano
--> Finished Dependency Resolution
Error: nano conflicts with filesystem-2.4.30-3.el6.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@localhost ~]#
[root@localhost ~]# yum localinstall filesystem-2.4.30-3.el6.i686.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining filesystem-2.4.30-3.el6.i686.rpm: filesystem-2.4.30-3.el6.i686
filesystem-2.4.30-3.el6.i686.rpm: does not update installed package.
Nothing to do
[root@localhost ~]#
Andrey San:
Ну, вы бы хоть читали ошибки, которые вам пишут:
Error: nano conflicts with filesystem-2.4.30-3.el6.i686
filesystem-2.4.30-3.el6.i686.rpm: does not update installed package.
filesystem у вас уже установлен, вы его сами уже установили; nano конфликтует по зависимостям с filesystem и не может быть установлен.
Вы бы лучше не занимались ручной установкой пакетов, если не понимаете смысла пакетов, зависимостей, и зачем это надо - yum-ом несложно наломать дров так, что после очередных улучшений будете всю систему переустанавливать с нуля.
Total size: 565 k
Installed size: 565 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zabbix-2.4.1-2.el7.x86_64 1/1
Verifying : zabbix-2.4.1-2.el7.x86_64 1/1
Installed:
zabbix.x86_64 0:2.4.1-2.el7
Complete!
[root@localhost Packages]# yum install zabbix-agent
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package zabbix-agent available.
Error: Nothing to do
[root@localhost Packages]# yum localinstall zabbix-agent-2.4.
zabbix-agent-2.4.1-2.el7.x86_64.rpm zabbix-agent-2.4.7-1.el6.x86_64.rpm
[root@localhost Packages]# yum localinstall zabbix-agent-2.4.1-2.el7.x86_64.rpm
Loaded plugins: fastestmirror
Examining zabbix-agent-2.4.1-2.el7.x86_64.rpm: zabbix-agent-2.4.1-2.el7.x86_64
Marking zabbix-agent-2.4.1-2.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:2.4.1-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
zabbix-agent x86_64 2.4.1-2.el7 /zabbix-agent-2.4.1-2.el7.x86_64 566 k
Total size: 566 k
Installed size: 566 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zabbix-agent-2.4.1-2.el7.x86_64 1/1
Verifying : zabbix-agent-2.4.1-2.el7.x86_64 1/1
Installed:
zabbix-agent.x86_64 0:2.4.1-2.el7
Complete!
новый вопрос, как теперь стартануть сервис? service zabbix-agent start или /etc/init.d/zabbix-agent start не помогают
Олег Цилюрик:
[root@localhost Packages]# which zabbix-agent
/usr/bin/which: no zabbix-agent in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
[root@localhost Packages]# service zabbix-agent status
Redirecting to /bin/systemctl status zabbix-agent.service
zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled)
Active: active (running) since Thu 2016-01-14 03:03:35 EST; 4h 0min ago
Main PID: 2376 (zabbix_agentd)
CGroup: /system.slice/zabbix-agent.service
├─2376 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─2377 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─2378 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─2379 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─2380 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─2381 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
Jan 14 03:03:35 localhost.localdomain systemd[1]: Starting Zabbix Agent...
Jan 14 03:03:35 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_agentd.pid not readable (yet?...art.
Jan 14 03:03:35 localhost.localdomain systemd[1]: Started Zabbix Agent.
Hint: Some lines were ellipsized, use -l to show in full.