1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

古いCentOSにのっているNagiosからSlackに通知を飛ばす

1
Posted at

今更だけど、Nagiosの通知をSlackに飛ばすようにした。
参考はここ http://takeshiyako.blogspot.jp/2014/09/slacknagios.html

困った事

Nagiosを積んでるCentOSのバージョンがとても古くて Crypt::SSLeay が入らない。
というか入れ方が分からない。

$ cat /etc/redhat-release
CentOS release 5.5 (Final)

なんでなの…

実際に上手く行かなかった失敗事例

①cpanコマンド

これはなんとなくダメそう (lib::XML とか昔ハマった記憶が)

cpan Crypt::SSLeay

色々足りないって怒られる

②openssl-devel をyumで。

これはいけるかもと思ったんだけどダメでした。
[Perl][CPAN]CentOSでCrypt::SSLeayをインストールする方法 · DQNEO起業日記

結局色々足りないって怒られる

上手くいった方法

結論はこれでした。そんな構文知りませんでした。

sudo yum install "perl(Crypt::SSLeay)"

ちなみにグーグルの迷宮に迷い込んで、ここで解決しました。
CentOS 7 に Movable Type 6 をインストールする - Qiita


普段Debian,Ubuntuだけに触れて生きているので、 apt だけじゃなく yum ももう少しちゃんと知らないといけないと思いました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?