LoginSignup
0
0

More than 5 years have passed since last update.

nagiosでgvfsへのアクセス不可エラーを無視する方法

Last updated at Posted at 2018-04-23

ubuntu 17.04 で確認。
nagiosユーザーでnagiosが実行されているが、
nagiosとはuidが異なるマウントポイントに対してはアクセスできずエラーとなる。

問題

DISK CRITICAL - /run/user/1000/gvfs is not accessible: 許可がありません

スクリーンショット_2018-04-24_07-50-55.png

nagiosの設定を修正

/etc/nagios3/conf.d/localhost_nagios2.cfg
 define service{
         use                             generic-service         ; Name of service template to use
         host_name                       localhost
         service_description             Disk Space
-        check_command                   check_all_disks!20%!10%
+        check_command                   check_disk!20%!10%!/
         }

なお check_all_disks は以下で定義されている。
/etc/nagios-plugins/config/disk.cfg

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