Skip to content

Commit ea5db2a

Browse files
committed
docs(deb-updates): update README
1 parent fa50c21 commit ea5db2a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

check-plugins/deb-updates/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ Output:
8888
| updates | Number | Number of updatable packages matching the current `--query`. |
8989

9090

91+
## Troubleshooting
92+
93+
**`apt-get update` returned with an error.**
94+
95+
> The plugin runs `sudo apt-get update` and requires a working sudoers configuration. The package installs `/etc/sudoers.d/linuxfabrik-monitoring-plugins` automatically. If this file is missing, restore it:
96+
>
97+
> ```bash
98+
> apt install --reinstall -o Dpkg::Options::="--force-confmiss" linuxfabrik-monitoring-plugins
99+
> ```
100+
>
101+
> If the file exists but the error persists, verify that the monitoring user (typically `icinga` or `nagios`) can run `sudo apt-get update` without a password prompt:
102+
>
103+
> ```bash
104+
> su icinga -s /bin/bash -c "sudo apt-get update --quiet 2"
105+
> ```
106+
107+
91108
## Credits, License
92109
93110
* Authors: [Linuxfabrik GmbH, Zurich](https://www.linuxfabrik.ch)

0 commit comments

Comments
 (0)