Hello,
can someone please tell me how to turn off this warning? Check now etc. I have already carried out.
Thank you
Hello,
can someone please tell me how to turn off this warning? Check now etc. I have already carried out.
Thank you
No one a tip for me?
Icinga Web 2 Version
2.8.2
Git commit
8a89839af94a247ee2149b2336c73b8251b477c0
PHP Version
7.4.12
Git commit date
2020-08-17
Copyright
© 2013-2020 The Icinga Project
zones.d/director-global/service_templates.conf
template Service "apt" {
check_command = "apt"
max_check_attempts = "1"
check_interval = 1s
retry_interval = 1s
check_timeout = 30s
enable_notifications = true
enable_active_checks = true
enable_passive_checks = true
enable_event_handler = true
enable_flapping = true
enable_perfdata = true
volatile = false
command_endpoint = host_name
}
Hi,
can you show us the config from your apt service and also which os are you using?
Greetz
Hey thank you for your support! I am using the operating system Ubuntu 20.04.1 LTS. Which config do you mean? I work with the director and a service set. Except for the master I left it manually and the config looks like this:
apt.conf
apply Service "apt" {
import "generic-service"
check_command = "apt"
assign where host.name == NodeName
}
templates.conf:
template Service "generic-service" {
max_check_attempts = 5
check_interval = 1m
retry_interval = 30s
}
Thank you!
Last time I had this, permissions in /etc/apt were to zu restrictrive.
Try: sudo -u nagios /usr/lib/nagios/plugins/check_apt
This will execute the plugin as the nagios user (which is the user for icinga on debian), which might get a different result than executing it as root/.
In my case, files in /etc/apt/sources.list.d were not world-readable
Hello Lorenz, thank you for your efforts!
I carried out your command and got the following result:
~$ ls -ldh /etc/apt
drwxr-xr-x 7 root root 4.0K Nov 9 20:23 /etc/apt
~$ sudo -u nagios /usr/lib/nagios/plugins/check_apt
~$ APT WARNING: 0 packages available for upgrade (0 critical updates). warnings detected.|available_upgrades=0;;;0 critical_updates=0;;;0
/etc/apt/sources.list.d$ ls -la
total 28
drwxr-xr-x 2 root root 4096 Nov 5 09:37 .
drwxr-xr-x 7 root root 4096 Nov 9 20:23 ..
-rw-r--r-- 1 root root 118 Nov 5 09:37 focal-icinga.list
-rw-r--r-- 1 root root 118 Oct 23 12:33 focal-icinga.list.save
-rw-r--r-- 1 root root 122 Nov 5 09:37 ondrej-ubuntu-php-focal.list
-rw-r--r-- 1 root root 53 Nov 5 09:37 repos_influxdata_com_ubuntu.list
-rw-r--r-- 1 root root 53 Oct 23 12:33 repos_influxdata_com_ubuntu.list.save
Danke 
hm, please check the other files in /etc/apt for the correct permissions.
Apart from that: What does apt list --upgradable say? Are there some problems which the check might have detected?
Hi,
check also the apt.conf.d directory with ls -ls /etc/apt/apt.conf.d/ for correct permissions.
Greetz
Hey thank you my friend, you were right!
I set the authorizations incorrectly on my satellite!
> root@icinga2sat:/etc/apt/sources.list.d# ls -la
> total 16
> drwxr-xr-x 2 root root 4096 Nov 5 09:37 .
> drwxr-xr-x 7 root root 4096 Nov 5 10:25 ..
> -rw-r--r-- 1 root root 118 Nov 5 09:37 focal-icinga.list
> -rw------- 1 root root 53 Nov 5 09:37 repos_influxdata_com_ubuntu.list <---------------
After I corrected this and performed an update on the master and satellite, the warnings were gone.
Thank you my friend for taking the time for me and sry for my mistake!
Danke
My pleasure.
Ran into that problem myself, so I am happy to help out. 
Thank you sir! set all file to 644 permission in /etc/apt fixed the issue for me.