Skip to content

Icinga Director and disk checks for fuse mountpoints

When I rolled out my new Icinga2 installation, and added disk checks for all laptops, I ran into a small problem: there is a fuse mountpoint for logged in users which only the user can read. Apparently it has something to do with Flatpack.

cat /proc/mounts | grep doc
/dev/fuse /run/user/1000/doc fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0

By default, the Icinga2 ITL has a number of file system types excluded for the "check_disk" check, even some special fuse types, but plain "fuse" is not among them. Kind of makes sense, a fuse mountpoint can be anything, and you don't want to exclude all of them by default.

This results in the following error message when the check is rolled out on our laptops:

Plugin Output
DISK CRITICAL - /run/user/1000/doc is not accessible: Permission denied

Fortunately the fix is rather easy:

 

 

Data Field

First this needs a custom data field.

Icinga Director -> Define Data Fields

Create a field with the name "disk_exclude_type", and data type "Array".

Service Template

Then create a new service template.

Icinga Director -> Services -> Service Templates

I named mine "Disk", and the check command is "disk". After saving the template, add an extra field under "Fields": "disk_exclude_type". Save again, go back to "Service" and fill in the types you want to exclude. By default that is:

vars.disk_exclude_type = [
        "none",
        "tmpfs",
        "sysfs",
        "proc",
        "configfs",
        "devtmpfs",
        "devfs",
        "mtmfs",
        "tracefs",
        "cgroup",
        "fuse.gvfsd-fuse",
        "fuse.gvfs-fuse-daemon",
        "fdescfs",
        "overlay",
        "nsfs",
        "squashfs"
    ]

In my case I added "fuse" and "fuse.portal", and the list is now:

vars.disk_exclude_type = [
        "none",
        "tmpfs",
        "sysfs",
        "proc",
        "configfs",
        "devtmpfs",
        "devfs",
        "mtmfs",
        "tracefs",
        "cgroup",
        "fuse.gvfsd-fuse",
        "fuse.gvfs-fuse-daemon",
        "fdescfs",
        "overlay",
        "nsfs",
        "squashfs",
        "fuse",
        "fuse.portal"
    ]

Store everything again, and start using the Service Template in your checks. The errors should go away once the check runs for the first time.

  • Twitter
  • Bookmark Icinga Director and disk checks for fuse mountpoints at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Icinga Director and disk checks for fuse mountpoints
  • Bloglines Icinga Director and disk checks for fuse mountpoints
  • Technorati Icinga Director and disk checks for fuse mountpoints
  • Fark this: Icinga Director and disk checks for fuse mountpoints
  • Bookmark Icinga Director and disk checks for fuse mountpoints at YahooMyWeb
  • Bookmark Icinga Director and disk checks for fuse mountpoints at Furl.net
  • Bookmark Icinga Director and disk checks for fuse mountpoints at reddit.com
  • Bookmark Icinga Director and disk checks for fuse mountpoints at blinklist.com
  • Bookmark Icinga Director and disk checks for fuse mountpoints at Spurl.net
  • Bookmark Icinga Director and disk checks for fuse mountpoints at Simpy.com
  • Bookmark Icinga Director and disk checks for fuse mountpoints at blogmarks
  • Bookmark Icinga Director and disk checks for fuse mountpoints with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.
Form options