I have upgraded NCPA to 2.1.6 on a Windows server and expected to have a backward compatibility per this statement:
"Renamed agent/plugin node to plugins - Due to the confusion of the naming convention for the api/agent/plugin node, we have renamed this node to api/plugins which fits the current node layout better. This change affects both active and passive checks. The old node is still able to be used, so no immediate changes are necessary, but it is deprecated and will be removed in future versions of NCPA."
I have these (new) formats working just fine:
[c601018@vhlgnngxi071 ~]$ sudo su - nagios
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H IMPSHPDVCS0010V.TVLPORT.NET -t wspwebfarm -M system/agent_version --list
{
"agent_version": "2.1.6"
}
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H IMPSHPDVCS0010V.TVLPORT.NET -t wspwebfarm -M plugins/check_XXSS_Thread.vbs -a "XXSS.exe"
^[[DXXSS.exe Thread count is = 27 Thread count is in nominal range above lower threshold :19 OK | proc_threadcount=27;19;487
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H IMPSHPDVCS0010V.TVLPORT.NET -t wspwebfarm -M api/plugins/check_XXSS_Thread.vbs -a "XXSS.exe"
XXSS.exe Thread count is = 27 Thread count is in nominal range above lower threshold :19 OK | proc_threadcount=27;19;487
However, the old check format does not work. I have tried several variations:
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H IMPSHPDVCS0010V.TVLPORT.NET -t wspwebfarm -M api/plugin/check_XXSS_Thread.vbs -a "XXSS.exe"
The node (plugin) requested does not exist. You may be trying to access the 'plugins' node.
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H IMPSHPDVCS0010V.TVLPORT.NET -t wspwebfarm -M agent/plugin/check_XXSS_Thread.vbs -a "XXSS.exe"
The node (agent) requested does not exist.
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H IMPSHPDVCS0010V.TVLPORT.NET -t wspwebfarm -M api/agent/plugin/check_XXSS_Thread.vbs -a "XXSS.exe"
The node (agent) requested does not exist.
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H IMPSHPDVCS0010V.TVLPORT.NET -t wspwebfarm -M api/agent/plugins/check_XXSS_Thread.vbs -a "XXSS.exe"
The node (agent) requested does not exist.
Please advise,
Yakov
NCPA 2.1.6 backward compatibility issue
Re: NCPA 2.1.6 backward compatibility issue
In the change log, the Backward Compatibility for those commands were fully removed in version 2.1.0 or later of the Agent. See this link
https://github.com/NagiosEnterprises/nc ... HANGES.rst
https://github.com/NagiosEnterprises/nc ... HANGES.rst
Be sure to check out our Knowledgebase for helpful articles and solutions!