# Error control

The plugin works modularly, so if for some reason it fails to send the data, through terminal commands we can see where it is failing. We will be able to see that part of the environment that we are getting the data is having problems to send the data (pods, nodes, deployments, etc).

**With the parameter as\_server\_plugin of the conf to 0**

Executing the plugin by terminal, if any part fails when sending the data it will print a module and in the description we will see which agent is the one that fails.

```
<path pandora_openshift.pl> <path pandora_openshift.conf>
```

[![image-1645116241124.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-02/scaled-1680-/image-1645116241124.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-02/image-1645116241124.png)

In this example we have painted a module in xml by terminal that tells us in the description that it has had problems with the pod\_stats agent.

**With the parameter as\_server\_plugin of the conf to 1**

If we execute manually the plugin by terminal with the option as\_server\_plugin to 1, this will paint by terminal a number, this number indicates in which part the plugin has failed.

<table border="1" id="bkmrk-9-ha-ejecutado-todo-" style="border-collapse: collapse; width: 100%; height: 290px;"><tbody><tr style="height: 29px;"><td style="width: 50%; height: 29px;">9</td><td style="width: 50%; height: 29px;">You have executed everything perfectly</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">8</td><td style="width: 50%; height: 29px;">Failed in openshift agent</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">7</td><td style="width: 50%; height: 29px;">Failed in replication controllers agent</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">6</td><td style="width: 50%; height: 29px;">Failed agent services</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">5</td><td style="width: 50%; height: 29px;">Agent api services failed</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">4</td><td style="width: 50%; height: 29px;">Failed in the imagestreams agent</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">3</td><td style="width: 50%; height: 29px;">Failed in deployments agents</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">2</td><td style="width: 50%; height: 29px;">You have failed in the agent pod stats</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">1</td><td style="width: 50%; height: 29px;">Failed in pod agents</td></tr><tr style="height: 29px;"><td style="width: 50%; height: 29px;">0</td><td style="width: 50%; height: 29px;">Failed in node agents</td></tr></tbody></table>