Hello, i monitor several websites by a self written plugin thats calls curl and reports the HTTP-Code. Usually this works fine in agents that have 6 or 8 modules. But in one case I have an agent with 80 modules and then some modules of this agent often run into an unknown state that will be recovered with the next execution. I have analysed the logs, but have nothing special found. Do you have an idea what could be the problem? Regards Thorsten
Status FlipFlop in Agents
witt · 15 sept 2016, 11:00 · 6 mensajes · 60 visitas
- Inicio del debate
Hello witt, As you describe the issue, a couple of posibilities come to my mind. It may be due to some "long duration" modules, that maybe take too long to be executed, if they are running some scripts or checks that can take several minutes to end, it might cause the agent to go unknown. Also, it could be due to some kind of mess between agent interval and module interval. Keep in mind that an agent will turn into unknown status when it doesn't update its data (by receiving info) on two intervals. For example interval 5min, and it doesn't receive data in 10 minutes. Knowing that, you should be able to find what is causing this issue. Just another question, is this agent executed on a Linux or Windows system? Kind regards, Antonio.
Hi Antonio, thanks for you answer. I have checked the intervals. For the agent is 10 minutes configured and for module is also 10 minutes configured. The Plugin will be executed on a linux system. The plugin usually takes 1-2 seconds. I think if there would be network issues then more modules would be affected. Maybe there is possibility to get a more detailed log about the module execution? Regards Thorsten
Hello Witt, You can set the token "verbosity 10" in "/etc/pandora/pandora_server.conf" and check your logs "/var/log/pandora/pandora_server.log" and "/var/log/pandora/pandora_server.error". Remeber to set "verbosity 3" after checking the logs. If there are any errors, make sure that your plugin is returning a valid output in all cases. Kind regards, Enrique.
Hello, I have found something in the log: 2016-09-26 08:35:45 wamo-hst.local [V3] [ERROR] Undefined value returned by plug-in module Mysite agent MyAgent. Is the server out of memory? This can only mean that my plugin is the cause of the problem? Right?
Hello Witt, This problem may be caused because the server is out of memory, but is most probably caused because the plugin is returning an empty output. Check your plugin execution running it in a terminal with the same parameters that in the module that is failing to see what is returning and check your code. Kind regards, Enrique.
Entra en tu cuenta para publicar.
