check_apt
can only show results from the host it's running on (e.g., localhost).
To run check_apt against other hosts, you need an agent of some sort. Like NRPE or check_by_ssh (with keys).
This applies to any plugin that is checking an "internal" thing like APT, load, memory, disk usage, SMART health, etc.
Edit: To clarify, your service def that applies this check to the system-packages
needs to be more like this, because right now you're running check_apt
on localhost for every check:
define service {
hostgroup_name system-packages
service_description APT
check_command check_nrpe!check_apt
use generic-service
}
Or perhaps check_nrpe_1arg
instead, if using the Debian/Ubuntu packaged NRPE.