NCPA Agent v2.2.2 & v2.2.3 appears broken
Posted: Wed Feb 03, 2021 3:27 pm
G'day Support,
So I am in the middle of a huge deployment of Windows NCPA agents...was in the process of using 2.2.2 but now tried 2.2.3 both are broken. Went back and tried same command against a 2.2.0 and it functioned as expected.
So the one important issue I have found involves using check_ncpa.py to query the ncpa agent with the following command where you utilize the "match=search" or "match=regex" when querying Services, names have been changed to protect the innocent.
I need support to confirm. I really need to addressed quickly so I can determine whether to fall back to 2.2.0 or wait for 2.2.4 if it can be resolved & compiled quickly.
Thank you for your support,
Danny
NCPA Version 2.2.0
SUCCESSFUL
check_ncpa.py --verbose -H myserver1.amc.org -P 3181 -t 'my-token' -M '/system/agent_version' -q ''
Connecting to: https://edwr-exp-p1.amc.uwmedicine.org: ... en&check=1
File returned contained:
{
"returncode": 0,
"stdout": "OK: Agent_version was ['2.2.0']"
}
OK: Agent_version was ['2.2.0']
check_ncpa.py --verbose -H myserver1.amc.org -P 3181 -t 'my-token' -M 'services' -q 'service=dns,match=search,status=running'
Connecting to: https://edwr-exp-p1.amc.uwmedicine.org: ... us=running
File returned contained:
{
"returncode": 0,
"stdout": "OK: Dnscache is running"
}
OK: Dnscache is running
==================================================================================================================================================
NCPA Version 2.2.2
FAILURE
check_ncpa.py --verbose -H myserver2 -P 3181 -t 'my-token' -M '/system/agent_version' -q ''
Connecting to: https://myserver2:3181/api/system/agent ... en&check=1
File returned contained:
{
"returncode": 0,
"stdout": "OK: Agent_version was ['2.2.2']"
}
OK: Agent_version was ['2.2.2']
check_ncpa.py --verbose -H myserver2 -P 3181 -t 'my-token' -M 'services' -q 'service=dns,match=search,status=running'
Connecting to: https://myserver2:3181/api/services/?to ... us=running
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR
==================================================================================================================================================
NCPA Version 2.2.3
FAILURE
check_ncpa.py --verbose -H myserver3 -P 3181 -t 'my-token' -M '/system/agent_version' -q ''
Connecting to: https://myserver3:3181/api/system/agent ... en&check=1
File returned contained:
{
"returncode": 0,
"stdout": "OK: Agent_version was ['2.3.0']"
}
OK: Agent_version was ['2.3.0']
check_ncpa.py --verbose -H myserver3 -P 3181 -t 'my-token' -M 'services' -q 'service=dns,match=search,status=running'
Connecting to: https://myserver3:3181/api/services/?to ... us=running
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR
So I am in the middle of a huge deployment of Windows NCPA agents...was in the process of using 2.2.2 but now tried 2.2.3 both are broken. Went back and tried same command against a 2.2.0 and it functioned as expected.
So the one important issue I have found involves using check_ncpa.py to query the ncpa agent with the following command where you utilize the "match=search" or "match=regex" when querying Services, names have been changed to protect the innocent.
I need support to confirm. I really need to addressed quickly so I can determine whether to fall back to 2.2.0 or wait for 2.2.4 if it can be resolved & compiled quickly.
Thank you for your support,
Danny
NCPA Version 2.2.0
SUCCESSFUL
check_ncpa.py --verbose -H myserver1.amc.org -P 3181 -t 'my-token' -M '/system/agent_version' -q ''
Connecting to: https://edwr-exp-p1.amc.uwmedicine.org: ... en&check=1
File returned contained:
{
"returncode": 0,
"stdout": "OK: Agent_version was ['2.2.0']"
}
OK: Agent_version was ['2.2.0']
check_ncpa.py --verbose -H myserver1.amc.org -P 3181 -t 'my-token' -M 'services' -q 'service=dns,match=search,status=running'
Connecting to: https://edwr-exp-p1.amc.uwmedicine.org: ... us=running
File returned contained:
{
"returncode": 0,
"stdout": "OK: Dnscache is running"
}
OK: Dnscache is running
==================================================================================================================================================
NCPA Version 2.2.2
FAILURE
check_ncpa.py --verbose -H myserver2 -P 3181 -t 'my-token' -M '/system/agent_version' -q ''
Connecting to: https://myserver2:3181/api/system/agent ... en&check=1
File returned contained:
{
"returncode": 0,
"stdout": "OK: Agent_version was ['2.2.2']"
}
OK: Agent_version was ['2.2.2']
check_ncpa.py --verbose -H myserver2 -P 3181 -t 'my-token' -M 'services' -q 'service=dns,match=search,status=running'
Connecting to: https://myserver2:3181/api/services/?to ... us=running
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR
==================================================================================================================================================
NCPA Version 2.2.3
FAILURE
check_ncpa.py --verbose -H myserver3 -P 3181 -t 'my-token' -M '/system/agent_version' -q ''
Connecting to: https://myserver3:3181/api/system/agent ... en&check=1
File returned contained:
{
"returncode": 0,
"stdout": "OK: Agent_version was ['2.3.0']"
}
OK: Agent_version was ['2.3.0']
check_ncpa.py --verbose -H myserver3 -P 3181 -t 'my-token' -M 'services' -q 'service=dns,match=search,status=running'
Connecting to: https://myserver3:3181/api/services/?to ... us=running
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR