I already found the solution, but I want to share it with the community.
I have a "MAX Service Check Execution Time" very high, from 30s to 300s, a problem very similar to this one:
https://support.nagios.com/forum/viewto ... 65#p115564
With the API is possible to extract the servicestatus, which have the field execution_time:d, but I obtained an 500 error due PHP memory limit
https://support.nagios.com/forum/viewto ... =6&t=38699
The quick$&dirty solution was to rise the memory limit in PHP, but after reading again the API doc, I found a more elegant one:
- orderby=execution_time:d
- records=5
Code: Select all
https://<server>/nagiosxi/api/v1/objects/servicestatus?apikey=<apykey>&orderby=execution_time:d&records=5&pretty=1
P.S. the problem is the NRPE timeout configured to 30, and 300 seconds, by the previous admin
P.P.S. the post can be closed