debian-edu-config: Icinga2 config: check_disks without parameters must be removed

Serhii Horichenko <[email protected]>
Newsgroups gmane.linux.skolelinux.devel,gmane.linux.debian.devel.education
Message-ID <CAPu3mnwsnM+j+yjtcG3_ca4TvTbf=pU2UUbNaz5DZAue51vjmQ@mail.gmail.com>
Package: src:debian-edu-config

Version: 2.12.44~deb12u1


Icinga2 has a separate "disk" service with no parameters.

root@tjener:/etc/icinga2/conf.d# cat hosts.conf | tail -16 | head -8

```
  /* Define disks and attributes for service apply rules in
`services.conf`. */
  vars.disks["disk"] = {
    /* No parameters. */
  }
  vars.disks["disk /"] = {
    disk_partitions = "/"
  }
```
Running "check_disk" without parameters doesn't make sense:
```
/usr/lib/nagios/plugins/check_disk
                                                         check_disk: Could
not parse arguments
Usage:
 check_disk {-w absolute_limit |-w  percentage_limit% | -W
inode_percentage_limit } {-c absolute_limit|-c percentage_limit% | -K
inode_percentage_limit } {-p path | -x device}
[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]
[-t timeout] [-u unit] [-v] [-X type_regex] [-N type]
```

In a web version (icingaweb2) it showed as a CRITICAL ERROR
Service: *disk*
DISK CRITICAL - /run/user/0/doc is not accessible


Sincerely,
Serhii Horichenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.