NCPA required 777 permission on plugins dir
Posted: Tue Mar 19, 2019 5:19 pm
We are in a process of upgrading the NCPA agent to 2.1.6 from 1.8.1. On most servers we are using an ITMS product to do the upgrade - it saves the plugins dir, then uninstalls 1.8.1, install 2.1.6 in a diff location and then copies plugins back. This process works fine. We also have several Asure servers and used the Azure runbook to perform the same procedure. After the upgrade was performed I could not list the plugins using the api:
[c601018@vhlgnngxi001 ~]$ /usr/local/nagios/libexec/check_ncpa.py -H BASTION1001.OCP-A.ZU2.PROD.travelport.io -t wspwebfarm -M plugins --list
{
"plugins": []
}
After changing the plugins dir permission from 755 to 777 it started to work:
[c601018@vhlgnngxi001 ~]$ /usr/local/nagios/libexec/check_ncpa.py -H BASTION1001.OCP-A.ZU2.PROD.travelport.io -t wspwebfarm -M plugins --list
{
"plugins": [
"LICENSE",
"Makefile",
"README.md",
"check_hawkular_machine_timestamp",
"check_openshift_cert_expiry_report",
"check_openshift_es_stats",
"check_openshift_node",
"check_openshift_node_fluentd",
"check_openshift_node_list",
"check_openshift_node_log_heartbeat",
"check_openshift_node_resources",
"check_openshift_pod_count",
"check_openshift_pod_cpu_usage",
"check_openshift_pod_memory",
"check_openshift_pod_node_alloc",
"check_openshift_pod_status_count",
"check_openshift_project_phase",
"check_openshift_project_pod_phase",
"check_openshift_pv_avail",
"check_openshift_pvc_phase",
"new-app-and-wait",
"openshift-dns.conf",
"openshift.conf",
"setup.py",
"utils",
"write-config"
]
}
[c601018@vhlgnngxi001
On checked other servers and permission 755 was sufficient. I cannot explain the discrepancy.
The server above is RHEL7
[c601018@vhlgnngxi001 ~]$ /usr/local/nagios/libexec/check_ncpa.py -H BASTION1001.OCP-A.ZU2.PROD.travelport.io -t wspwebfarm -M plugins --list
{
"plugins": []
}
After changing the plugins dir permission from 755 to 777 it started to work:
[c601018@vhlgnngxi001 ~]$ /usr/local/nagios/libexec/check_ncpa.py -H BASTION1001.OCP-A.ZU2.PROD.travelport.io -t wspwebfarm -M plugins --list
{
"plugins": [
"LICENSE",
"Makefile",
"README.md",
"check_hawkular_machine_timestamp",
"check_openshift_cert_expiry_report",
"check_openshift_es_stats",
"check_openshift_node",
"check_openshift_node_fluentd",
"check_openshift_node_list",
"check_openshift_node_log_heartbeat",
"check_openshift_node_resources",
"check_openshift_pod_count",
"check_openshift_pod_cpu_usage",
"check_openshift_pod_memory",
"check_openshift_pod_node_alloc",
"check_openshift_pod_status_count",
"check_openshift_project_phase",
"check_openshift_project_pod_phase",
"check_openshift_pv_avail",
"check_openshift_pvc_phase",
"new-app-and-wait",
"openshift-dns.conf",
"openshift.conf",
"setup.py",
"utils",
"write-config"
]
}
[c601018@vhlgnngxi001
On checked other servers and permission 755 was sufficient. I cannot explain the discrepancy.
The server above is RHEL7