diff options
author | Netdata bot <43409846+netdatabot@users.noreply.github.com> | 2024-06-24 13:15:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 20:15:43 +0300 |
commit | 9fa243422867f7f6841637f0453deadffd7134f9 (patch) | |
tree | be428a21e2ee1293c88bb45bc1d5df30a2a87879 /src/go/collectors/go.d.plugin/modules/systemdunits | |
parent | 74f8efd9af3938ce00d673a04cdc0eee0ac629f8 (diff) |
Regenerate integrations.js (#18006)
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/systemdunits')
-rw-r--r-- | src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md b/src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md index 431f084baf..f87f3cc073 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md +++ b/src/go/collectors/go.d.plugin/modules/systemdunits/integrations/systemd_units.md @@ -286,4 +286,37 @@ should give you clues as to why the collector isn't working. ./go.d.plugin -d -m systemdunits ``` +### Getting Logs + +If you're encountering problems with the `systemdunits` collector, follow these steps to retrieve logs and identify potential issues: + +- **Run the command** specific to your system (systemd, non-systemd, or Docker container). +- **Examine the output** for any warnings or error messages that might indicate issues. These messages should provide clues about the root cause of the problem. + +#### System with systemd + +Use the following command to view logs generated since the last Netdata service restart: + +```bash +journalctl _SYSTEMD_INVOCATION_ID="$(systemctl show --value --property=InvocationID netdata)" --namespace=netdata --grep systemdunits +``` + +#### System without systemd + +Locate the collector log file, typically at `/var/log/netdata/collector.log`, and use `grep` to filter for collector's name: + +```bash +grep systemdunits /var/log/netdata/collector.log +``` + +**Note**: This method shows logs from all restarts. Focus on the **latest entries** for troubleshooting current issues. + +#### Docker Container + +If your Netdata runs in a Docker container named "netdata" (replace if different), use this command: + +```bash +docker logs netdata 2>&1 | grep systemdunits +``` + |