Werk #337: New header for limiting the execution time of a query

Komponente Livestatus
Titel New header for limiting the execution time of a query
Datum 16.12.2013
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.2.5i1
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

The new Livestatus header Timelimit: sets an upper limit for the execution time of a query. Specify the timeout as a number of seconds. The following query will stop after 5000 lines of output. If that takes longer than 30 seconds, then the query fails with no output:

query.lql

GET log
Columns: message
Timelimit: 30
Limit: 5000

Please note, that Limit: and Timelimit: have a different behaviour when the limit is reached:

  • Limit: end the query, output all rows that have been found so far.
  • Timelimit: abort the query with an error, do not output any lines.

Zur Liste aller Werks