LoginSignup
1
1

More than 5 years have passed since last update.

icingaのWebUIでコマンド実行エラー時の対処

Last updated at Posted at 2014-07-07

icingaの場合

icingaWebUIからコマンド実行エラー
Error: Could not open command file '/var/icinga/rw/icinga.cmd' for update!

現状把握

apacheの実行ユーザが`icingacmd`グループに属していること
$ id apache
uid=48(apache) gid=48(apache) 所属グループ=48(apache),493(icingacmd)
$ ls -lh /var/icinga/rw/icinga.cmd
prw-rw---- 1 icinga 501 0  1月 27 07:59 /var/icinga/rw/icinga.cmd
  • /var/icinga/rw/icinga.cmdの所有者がicinga:icingacmdであること。

設定修正

$ sudo chown :icingacmd /var/icinga/rw/icinga.cmd

確認

確認
$ ls -l /var/icinga/rw/icinga.cmd
prw-rw---- 1 icinga icingacmd 0  1月 27 07:59 /var/icinga/rw/icinga.cmd

nagios3の場合

chmod g+x /var/lib/nagios3/rw/

rw.png

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