mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-07-07 08:01:36 -04:00
check_dbi: implement ok summary
This commit is contained in:
parent
151266ef4e
commit
21c0eefc78
1 changed files with 2 additions and 0 deletions
|
|
@ -220,6 +220,8 @@ int main(int argc, char **argv) {
|
|||
|
||||
mp_check overall = mp_check_init();
|
||||
|
||||
mp_set_ok_summary(&overall, "DBI check was succesful");
|
||||
|
||||
mp_subcheck sc_connection_time = mp_subcheck_init();
|
||||
sc_connection_time = mp_set_subcheck_default_state(sc_connection_time, STATE_OK);
|
||||
xasprintf(&sc_connection_time.output, "Connection time: %f", conn_time);
|
||||
|
|
|
|||
Loading…
Reference in a new issue