Plugin check_http takes too long to response
Posted: Thu Sep 26, 2019 3:47 pm
Hello!
We are using Nagios XI for monitoring a huge sort of types of checks for lot of services and hosts of Nación Servicios S.A. . One of the groups of checks is all the backend of “Cuándo SUBO”, a mobile app which tells you when a bus is going to be in the bus stop, and we have thousands of users with those apps (Android and iOS platforms).
Recently, we tried to deploy a new http check with the check_http plugin, for a webservice, but we have a critical issue that it seems to be a performance problem of the plugin. We already use the same plugin for others checks of others webservicies and it seems to work fine, but not for this group.
We want to check three methods of the webservice registering the size and response time, but it takes a lot of time to get the response when we use the plugin; but it takes a short time when we call the webservice using wget from shell.
Attacheds, you can see the screenshots with the details of the test we made for one of the methods:
Nagios - UI - Result (timed out).PNG: Check “running” with timed out result, more than 60 seconds.
Nagios - Shell - Using plugin check_http.PNG: Shell execution with the plugin taking 202 seconds.
Nagios - Shell - Without using plugin.PNG: Shell wget execution without plugin taking 0.6 seconds.
By the way, we have another theme, probably an issue:
We found that the graphs always shows amounts with decimals, and that’s not ok, because the result of the sql query we use responds always with integers. We use the “check_mssql_health --mode sql” plugin to count and check the amount of buses transmitting.
We hope you can support us with this problems.
Thank you very much!
Best regards
We are using Nagios XI for monitoring a huge sort of types of checks for lot of services and hosts of Nación Servicios S.A. . One of the groups of checks is all the backend of “Cuándo SUBO”, a mobile app which tells you when a bus is going to be in the bus stop, and we have thousands of users with those apps (Android and iOS platforms).
Recently, we tried to deploy a new http check with the check_http plugin, for a webservice, but we have a critical issue that it seems to be a performance problem of the plugin. We already use the same plugin for others checks of others webservicies and it seems to work fine, but not for this group.
We want to check three methods of the webservice registering the size and response time, but it takes a lot of time to get the response when we use the plugin; but it takes a short time when we call the webservice using wget from shell.
Attacheds, you can see the screenshots with the details of the test we made for one of the methods:
Nagios - UI - Result (timed out).PNG: Check “running” with timed out result, more than 60 seconds.
Nagios - Shell - Using plugin check_http.PNG: Shell execution with the plugin taking 202 seconds.
Nagios - Shell - Without using plugin.PNG: Shell wget execution without plugin taking 0.6 seconds.
By the way, we have another theme, probably an issue:
We found that the graphs always shows amounts with decimals, and that’s not ok, because the result of the sql query we use responds always with integers. We use the “check_mssql_health --mode sql” plugin to count and check the amount of buses transmitting.
We hope you can support us with this problems.
Thank you very much!
Best regards