LoginSignup
0
0

More than 5 years have passed since last update.

Nagios check_pingでCRITICAL - Could not interpret output from ping command

Posted at

CRITICAL - Could not interpret output from ping command が出たときの話

  • check_pingを実行して、以下のように出た人向け。
# /usr/local/nagios/libexec/check_ping -H x.x.x.x -w 3000.0,80% -c 5000.0,100% -p 1
ping
CRITICAL - Could not interpret output from ping command

  • pingの実行権限見てみて、付いてなければ付与するだけ。
# ls -al /bin/ping
-rwxr-xr-x 1 root root 38520 3月 22 13:46 2017 /bin/ping
# chmod u+s /bin/ping
# ls -al /bin/ping
-rwsr-xr-x 1 root root 38520 3月 22 13:46 2017 /bin/ping

  • 自分の環境では、↑では解決しなかったので備忘録として書いておきます。
  • やったことは、プラグインのバージョンを上げたこと。
  • バージョン確認。
# cd /usr/local/nagios/libexec
# ./check_ping -V
check_ping v1.5.x (nagios-plugins 1.5.x)
  • (2017/07/20)時点での最新はv2.1.4らしいので、インストールする。
  • コピーするときは旧バージョンのプラグインも念のため保持しておく。
# cd /usr/local/src
# wget https://nagios-plugins.org/download/nagios-plugins-2.1.4.tar.gz
# tar zxvf nagios-plugins-2.1.4.tar.gz 
# cd nagios-plugins-2.1.4
# ./configure && make && make install
# ./plugins/check_ping -V
check_ping v2.1.4 (nagios-plugins 2.1.4)
# cp ./plugins/check_ping /usr/local/nagios/libexec/check_ping2
  • 動作確認して、check_pingが通ることを確認。ファイルを置き換えて終了 :ok_woman:
# /usr/local/nagios/libexec/check_ping2 -H x.x.x.x -w 3000.0,80% -c 5000.0,100% -p 1
PING OK - Packet loss = 0%,...省略
# mv check_ping2 check_ping 
0
0
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
0
0