Troubleshooting Linux CollectorsLast updated on 16 July, 2020
We’ve compiled some helpful tips for troubleshooting common Linux Collector issues.
Name Service Caching Daemon (NSCD)
The LogicMonitor Collector makes DNS queries to resolve the hosts it is monitoring and to determine which LogicMonitor servers to report data to.
If you are running an NSCD, you should make sure that it respects positive DNS TTLs. For example, on RedHat ES/CentOS glibc-2.5-24 and earlier does not respect DNS TTLs correctly, meaning that you will need to run a later version or disable NSCD.
If the NSCD returns a stale record for an hour, it would impact your ability to monitor devices and communication between LogicMonitor datacenters.
Some distributions of Linux (such as RedHat, CentOS, and Fedora) may have Security-Enhanced (SE) Linux enabled, which may restrict access and permissions that can impact the Collector’s ability to monitor.
/usr/sbin/sestatus commands to check the status of SELinux.
Disabled. The command returns
Enforcingwhen SE Linux is enabled.
sestatuscommand returns the SE Linux status (
Disabled) and the mode (
Passive) being used.
If you are having monitoring problems in your Linux server and SE Linux is enabled, you may be able to use Permissive mode to review the logs and identify the issue:
In Permissive mode, more denials are logged because actions that would otherwise be denied in Enforcing mode are allowed. After you run the Collector services in permissive mode and SE Linux logs to identify the permissions that need to be enabled, you should enable the necessary permissions.
To put SE Linux back into enforcing mode, run: