Nagios is lying to us
Posted: Wed Apr 26, 2017 6:19 am
Hello,
it appears nagios is lying to us. We have 10k checks, and it's automated via multiple python scripts. The issue happens is that script detects changes in services and does the correct API calls, and then nagios goes ahead and lies to us.
Example:
{
"success": "Removed SERVER-A :: Service - someservice from the system. Config imported but not yet applied."
}
Once we reconfigure nagios, the service is still there.
When we try adding apply in the api call, it says the restart command was sent, but nothing happens. The service is still there.
reconfigure_nagios.sh finishes correctly, without any issues, but the service is magically still there.
Do you have any idea why this is happening?
Also, why is nagios reporting that service was removed when in fact it wasn't?
it appears nagios is lying to us. We have 10k checks, and it's automated via multiple python scripts. The issue happens is that script detects changes in services and does the correct API calls, and then nagios goes ahead and lies to us.
Example:
{
"success": "Removed SERVER-A :: Service - someservice from the system. Config imported but not yet applied."
}
Once we reconfigure nagios, the service is still there.
When we try adding apply in the api call, it says the restart command was sent, but nothing happens. The service is still there.
reconfigure_nagios.sh finishes correctly, without any issues, but the service is magically still there.
Do you have any idea why this is happening?
Also, why is nagios reporting that service was removed when in fact it wasn't?