Make NCPA plugins return status
Posted: Mon Nov 09, 2020 4:45 am
Hi there,
I am trying to migrate nrpe plugins to ncpa plugins but having some basic issues so far.
I call the remote plugin which executes successfully and return the wanted message but it does not return status code (WARNING, CRITICAL etc.) .
The remote script returns those codes upon execution but nagios can not get as it seems. I found in the knowledge base that custom plugins do not support builtin critical and warning flags but I cannot find a way to make this work.
note: It does not help that all google search results are about nrpe.
Thanks in advance.
I am trying to migrate nrpe plugins to ncpa plugins but having some basic issues so far.
I call the remote plugin which executes successfully and return the wanted message but it does not return status code (WARNING, CRITICAL etc.) .
The remote script returns those codes upon execution but nagios can not get as it seems. I found in the knowledge base that custom plugins do not support builtin critical and warning flags but I cannot find a way to make this work.
note: It does not help that all google search results are about nrpe.
Thanks in advance.