How to resolve EOF Exception in server monitors in Applications Manager

How to resolve EOF Exception in server monitors in Applications Manager

If the server that you want to monitor throws an EOF exception, while you're trying to add it as a monitor, or when Applications Manager is trying to login, you will need to check the error trace.
Navigate to /var/log/secure or /var/log/auth.log directory in the target server and check the error trace in the log file. If you find a trace similar to the one given below, then the problem must be for that specific user only.

Sample trace:

Oct 12 18:34:30 linuxsvr sshd[38320]: Accepted publickey for apmanuser from 10.13.13.13 port 54464 ssh2

Oct 12 18:34:30 linuxsvr sshd[38320]: pam_unix(sshd:session): session opened for user apmanuser by (uid=0)

Oct 12 18:34:48 linuxsvr sshd[38322]: Received disconnect from 10.13.13.13: 11: The user disconnected the application

Oct 12 18:34:48 linuxsvr sshd[38320]: pam_unix(sshd:session): session closed for user apmanuser

Oct 12 18:38:46 linuxsvr sshd[38467]: pam_access(sshd:account): access denied for user `apmanuser' from `monitoringserver'

Oct 12 18:38:46 linuxsvr sshd[38467]: pam_sss(sshd:account): Access denied for user apmanuser: 10 (User not known to the underlying authentication module)

Oct 12 18:38:46 linuxsvr sshd[38468]: fatal: Access denied for user apmanauser by PAM account configuration



Solution:

 

1. Open the access.conf  file in the /etc/security directory in the server that you're trying to monitor.
Check the line given below in that file.

# All other users should be denied to get access from all sources.

#- : ALL : ALL


2. In order to avoid the error, we have to explicitly allow the the Applications Manager user to connect to the monitoring server.
Eg.

+ : <apmanuser >: <monitoringserver>,monitoringserver,..ext

Here, apmanuser  is the username which is configured in the monitor.
monitoringserver  is hostname/IP of the Applications Manager server.

You can replace it with the specific username and IP address and add it to the file below the line given in Step 1.


3. If you do not find a trace in /var/log/secure file similar to the one mentioned in the beginning, try the steps given in this KB. If that doesn't work either, please contact our support team ( appmanager-support@manageengine.com) along with the files specified below so we can analyze the problem and get back to you..
  1. Support information file  
  2. Output of the SSH Troubleshoot.bat script

                  New to ADSelfService Plus?

                    • Related Articles

                    • Unable to collect the data for Network Interface attribute using SSH mode for server monitors in Applications Manager

                      If you're unable for the Network Interface attribute using SSH mode for server monitors in Applications Manager, follow the steps below: 1. Open a terminal from the server you're trying to monitor and execute the following commands: Linux: LANG=C ip ...
                    • Troubleshooting Server Authentication Failures in Applications Manager

                      If you encounter authentication failures in server monitors in Applications Manager, refer and choose the links from the below list to troubleshoot the issue. You can choose the troubleshooting steps based on the type of authentication failure. ...
                    • Authentication Methods in Applications Manager

                      Authentication involves validating an incoming user to facilitate the access to a specific resource. There are various authentication methods that you can use - based on the requirements and usage. In recent times, numerous organizations are ...
                    • Data Retention in Applications Manager

                      Following are the different types of data that are retained for generating reports in Applications Manager: Attribute data Polled data This comprises of the data collected for the attributes in each poll of the monitor. This data is used to generate ...
                    • Mail Server Monitor - Troubleshooting

                      Common Mail Server Monitor Errors and Troubleshooting Guide 1. Unknown Host Error Description: This error occurs when the mail client cannot resolve the hostname of the mail server to an IP address. The issue typically arises from DNS resolution ...