The "Usability OS Connection Availability" alarm in Foglight for Oracle indicates that the agent failed to execute a remote OS-level command (e.g., checking for the Oracle PMON process or listener status) via SSH on the monitored host.
An error like the following appears in the Oracle agent log file
WARN [AGENTNAME-lowPriorityPool-574-[DBO_Usability][]] com.quest.qsi.fason.oracle.collection.processor.DBOListenerControlProcessor - Error occurred when running lsnrctl for listener LISTENER. Submitting the status of the listener process instead.
java.lang.RuntimeException: Failed to run query of "AGENTNAME" instance. Query [
${LOCALE} $ORACLE_HOME_VAR $TNS_ADMIN_VAR $LD_LIBRARY_PATH_VAR $SHLIB_PATH_VAR ${sudo} $oracle_home/bin/lsnrctl status $listener_name]. Params [{LD_LIBRARY_PATH_VAR=export LD_LIBRARY_PATH=$ORACLE_HOME/lib; , listener_name=LISTENER, oracle_home=/apps/oracle/product/19.0.0.0/grid, SHLIB_PATH_VAR=export SHLIB_PATH=$ORACLE_HOME/lib; , ORACLE_HOME_VAR=export ORACLE_HOME=/apps/oracle/product/19.0.0.0/grid; , TNS_ADMIN_VAR=}]
Caused by: com.quest.qsi.fason.framework.connections.common.exceptions.FrameworkQueryException: cannot execute remote command
The root cause is typically a failure in the SSH connection between the Foglight Agent Manager (FglAM) and the monitored host.
Specific causes may include:
MaxSessions too lowMaxStartups too agressiveulimit -n (number of open files), causing SSH or command execution to failThere is no specific single cause to this issue.
Maxsessions 50
MaxStartups 20:50:100
systemctl restart sshd
ulimit -nps -ef | grep -iw ora_pmon_<INSTANCE_NAME> | grep -vc grep
$oracle_home/bin/lsnrctl status $listener_name
ConnectionBrokenException or SshChannelOpenException for more context.
| Step | Persistent Issue | Intermittent Issue |
|---|---|---|
| 1. Verify SSH Access | Yes | Yes |
| 2. Check Agent User Privileges | Yes | less likely |
| 3. Review SSH Configuration | Yes | Yes |
| 4. Check Open File Limits (ulimit) | Yes | Yes |
| 4. Agent Manager Configuration | Yes | less likely |
| 5. Test Commands Manually | Yes | Yes |