NCPA Agent on RHEL, HTTP 403 FORBIDDEN
Posted: Mon Jul 22, 2019 8:49 am
Hi,
I've just installed the NCPA agent on a RHEL 7 server and configured it as per all my other NCPA agent based servers.
However when doing my initial check i get the following:
[root@nagios libexec]# ./check_ncpa.py -H 192.168.xxx.xxx -t 'notmyrealtoken' -P 5693 -M 'system/agent_version' -v
Connecting to: https://192.168.xxx.xxx:5693/api/system ... en&check=1
An error occurred:HTTP Error 403: FORBIDDEN
I have also tried the web interface for the agent and get the same error:
Forbidden
You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.
When attempting to add port 5693 to the firewall it tells me the firewall is not running so is not an issue:
[root@hostname ~]# firewall-cmd --add-port=5693/tcp --permanent
FirewallD is not running
How do I get this working?
I've just installed the NCPA agent on a RHEL 7 server and configured it as per all my other NCPA agent based servers.
However when doing my initial check i get the following:
[root@nagios libexec]# ./check_ncpa.py -H 192.168.xxx.xxx -t 'notmyrealtoken' -P 5693 -M 'system/agent_version' -v
Connecting to: https://192.168.xxx.xxx:5693/api/system ... en&check=1
An error occurred:HTTP Error 403: FORBIDDEN
I have also tried the web interface for the agent and get the same error:
Forbidden
You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.
When attempting to add port 5693 to the firewall it tells me the firewall is not running so is not an issue:
[root@hostname ~]# firewall-cmd --add-port=5693/tcp --permanent
FirewallD is not running
How do I get this working?