← Back to team overview

nagios-charmers team mailing list archive

[Bug 1807457] Re: local nagios disk monitor doesn't ignore /snap mounts with 0 inodes free

 

Haw, this is specifically the nagios-charm local monitoring config.

/etc/nagios3/localhost_nagios2.cfg

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       bootstack-jagex-nagios/0
        service_description             Disk Space
        check_command                   check_all_disks!20%!10%
        }


That then calls to /etc/nagios-plugins/config/disk.cfg:

# 'check_all_disks' command definition
define command{
        command_name    check_all_disks
        command_line    /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e
        }


I've found adding a -X squashfs on this check will skip snap squashfs
mounts, but the default nagios package doesn't provide a $ARG3$ for
additional options.

So, we'd need nagios charm to write out a new disk.cfg file that had a
check_all_disks_with_added_args as a new defined command, then update
the charm's template for localhost_nagios2.cfg to add the extra arg for
-X squashfs for arg3 and call the check_all_disks_with_added_args.

-- 
You received this bug notification because you are a member of Nagios
Charm developers, which is subscribed to Nagios Charm.
https://bugs.launchpad.net/bugs/1807457

Title:
  local nagios disk monitor doesn't ignore /snap mounts with 0 inodes
  free

Status in Nagios Charm:
  Invalid
Status in NRPE Charm:
  New

Bug description:
  Nagios plugins on bionic shouldn't detect disk full on /snap mounts.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nagios-charm/+bug/1807457/+subscriptions


References