NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
177 stars 95 forks source link

NCPA Agent - AIX 7.1 Fails / AIX 7.2 Works (UNKNOWN: An error occured connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR') ) #887

Open Eireocean opened 2 years ago

Eireocean commented 2 years ago

Good Day,

As per title, we have installed the NCPA Agent on a handful of AIX Servers. The AIX 7.2 Servers report back fine but the AIX 7.1 Servers fail as follows :

# /usr/local/nagios/libexec/check_ncpa.py -H XXXXXX -t 'XXXXXX' -P 5693 -M 'plugins/check_entitlement' -a '-ew=95% -ec=100%'
ENTITLEMENT CRITICAL ent_used=0.16(CRITICAL) ent=0.05 ent_max=1 vcpu_busy=15.94%(CRITICAL) |ent_used=0.16 ent=0.05 ent_max=1 vcpu_busy=15.94

# /usr/local/nagios/libexec/check_ncpa.py -H XXXXXX -t 'XXXXXX' -P 5693 -M 'plugins/check_entitlement' -a '-ew=95% -ec=100%'
UNKNOWN: An error occured connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR')

I have queries the AIX Engineer about the Servers locale / lang setting but they have confirmed it is the same. It was the only reference I have found to date that is similar to this issue.

Regards

jomann09 commented 2 years ago

Can you check in the log file /usr/local/ncpa/var/log/ncpa_listener.log ? there should be some output in there related to the 500 error that might explain the issue.

MrPippin66 commented 2 years ago

Can you run the check manually as the 'nagios' ID on the 7.2 server? Validate what return code it's returning