Hello,
first my installation looks like this:
System information:
Platform: Debian GNU/Linux
Platform version: 10 (buster)
Kernel: Linux
Kernel version: 4.19.0-16-amd64
Architecture: x86_64Build information:
Compiler: GNU 8.3.0
Build host: anubisApplication information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /varInternal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pidIcingaweb2-modules: director
I have installed a first service template “disk-check” and use it at the local master-zone (Icinga2 server itself). Now I see the whole time at “Overview/Services” this service as “unknown”. The response of the plugin is still “check_disk: Timeout interval muss ein positiver Integer sein - 1m”.
I tried several things: timeout with “1”, “60s”, “1m” etc., but the error doesn’t disappear.
Meanwhile I found under “Troubleshooting” of this service “Inspect”. There is the executed command shown:
'/usr/lib/nagios/plugins/check_disk' '-c' '50%' '-w' '40%' '-X' 'none' '-X' 'tmpfs' '-X' 'sysfs' '-X' 'proc' '-X' 'configfs' '-X' 'devtmpfs' '-X' 'devfs' '-X' 'mtmfs' '-X' 'tracefs' '-X' 'cgroup' '-X' 'fuse.gvfsd-fuse' '-X' 'fuse.gvfs-fuse-daemon' '-X' 'fdescfs' '-X' 'overlay' '-X' 'nsfs' '-X' 'squashfs' '-m' '-t' '1m' '-p' '/'
I use it on my bash konsole:
# /usr/lib/nagios/plugins/check_disk -c 50% -w 40% -X none -X tmpfs -X sysfs -X proc -X configfs -X devtmpfs -X devfs -X mtmfs -X tracefs -X cgroup -X fuse.gvfsd-fuse -X fuse.gvfs-fuse-daemon -X fdescfs -X overlay -X nsfs -X ‘squashfs’ -m -t 1m -p /
check_disk: Timeout interval muss ein positiver Integer sein - 1m
Only on this way it runs correctly:
# /usr/lib/nagios/plugins/check_disk -c 50% -w 40% -X none -X tmpfs -X sysfs -X proc -X configfs -X devtmpfs -X devfs -X mtmfs -X tracefs -X cgroup -X fuse.gvfsd-fuse -X fuse.gvfs-fuse-daemon -X fdescfs -X overlay -X nsfs -X ‘squashfs’ -m -p /
DISK OK - free space: / 138231 MB (97% inode=98%);| /=3322MB;89520;74600;0;149201
Only if the option “-t 1m” fails the command runs right. If I set the field “timeout” blank, the system fill up it with “-t 1m” per default.
How can I solve it on the Icinga2 director?
Greetings
Andreas