Skip to content

Instantly share code, notes, and snippets.

@glidenote
Created March 29, 2016 01:20
Show Gist options
  • Save glidenote/f200519cc6a587649d06 to your computer and use it in GitHub Desktop.
Save glidenote/f200519cc6a587649d06 to your computer and use it in GitHub Desktop.
[glidenote@all901 ~]$ curl -fsSL https://mackerel.io/file/script/amznlinux/setup-yum.sh | sh
This script requires superuser authority to configure Mackerel yum repository:
++ mktemp
+ gpgkey_path=/tmp/tmp.jDnEzYXiz8
+ curl -fsS -o /tmp/tmp.jDnEzYXiz8 https://mackerel.io/assets/files/GPG-KEY-mackerel
+ rpm --import /tmp/tmp.jDnEzYXiz8
+ rm /tmp/tmp.jDnEzYXiz8
+ rpm -ivh http://yum.mackerel.io/amznlinux/latest/x86_64/mackerel-repo-1-0.noarch.rpm
Retrieving http://yum.mackerel.io/amznlinux/latest/x86_64/mackerel-repo-1-0.noarch.rpm
Preparing...                          ################################# [100%]
        package mackerel-repo-1-0.noarch is already installed
[glidenote@all901 ~]$ yum clean all
Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper, versionlock
Cleaning repos: amzn-main amzn-updates epel mackerel nginx treasure-data
Cleaning up everything
Cleaning up list of fastest mirrors
[glidenote@all901 ~]$ sudo cp /etc/mackerel-agent/mackerel-agent.conf.rpmsave /etc/mackerel-agent/mackerel-agent.conf
[glidenote@all901 ~]$ vim /etc/mackerel-agent/mackerel-agent.conf
[glidenote@all901 ~]$ sudo yum install -y mackerel-agent mackerel-agent-plugins mackerel-check-plugins mkr
Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper, versionlock
Loading mirror speeds from cached hostfile
 * amzn-main: packages.us-west-1.amazonaws.com
 * amzn-updates: packages.us-west-1.amazonaws.com
 * epel: mirror.sfo12.us.leaseweb.net
amzn-main/latest                                                                                                                                           | 2.1 kB     00:00
amzn-updates/latest                                                                                                                                        | 2.3 kB     00:00
958 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mackerel-agent.noarch 0:0.30.0-1 will be installed
---> Package mackerel-agent-plugins.noarch 0:0.19.0-1 will be installed
---> Package mackerel-check-plugins.noarch 0:0.5.0-1 will be installed
---> Package mkr.noarch 0:0.9.0-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================================================
 Package                                              Arch                                 Version                                   Repository                              Size
==================================================================================================================================================================================
Installing:
 mackerel-agent                                       noarch                               0.30.0-1                                  mackerel                               1.8 M
 mackerel-agent-plugins                               noarch                               0.19.0-1                                  mackerel                                48 M
 mackerel-check-plugins                               noarch                               0.5.0-1                                   mackerel                                16 M
 mkr                                                  noarch                               0.9.0-1                                   mackerel                               1.9 M

Transaction Summary
==================================================================================================================================================================================
Install  4 Packages

Total download size: 68 M
Installed size: 188 M
Downloading packages:
http://yum.mackerel.io/amznlinux/latest/x86_64/mackerel-agent-0.30.0-1.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://yum.mackerel.io/amznlinux/latest/x86_64/mackerel-agent-plugins-0.19.0-1.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://yum.mackerel.io/amznlinux/latest/x86_64/mackerel-check-plugins-0.5.0-1.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://yum.mackerel.io/amznlinux/latest/x86_64/mkr-0.9.0-1.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.


Error downloading packages:
  mackerel-agent-plugins-0.19.0-1.noarch: failure: mackerel-agent-plugins-0.19.0-1.noarch.rpm from mackerel: [Errno 256] No more mirrors to try.
  mackerel-check-plugins-0.5.0-1.noarch: failure: mackerel-check-plugins-0.5.0-1.noarch.rpm from mackerel: [Errno 256] No more mirrors to try.
  mackerel-agent-0.30.0-1.noarch: failure: mackerel-agent-0.30.0-1.noarch.rpm from mackerel: [Errno 256] No more mirrors to try.
  mkr-0.9.0-1.noarch: failure: mkr-0.9.0-1.noarch.rpm from mackerel: [Errno 256] No more mirrors to try.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment