diff options
Diffstat (limited to 'plugins/check_users.c')
| -rw-r--r-- | plugins/check_users.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/check_users.c b/plugins/check_users.c index 4027d21a..8e0e2c35 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c | |||
| @@ -111,8 +111,13 @@ int main(int argc, char **argv) { | |||
| 111 | mp_add_subcheck_to_check(&overall, sc_users); | 111 | mp_add_subcheck_to_check(&overall, sc_users); |
| 112 | mp_exit(overall); | 112 | mp_exit(overall); |
| 113 | } | 113 | } |
| 114 | /* check the user count against warning and critical thresholds */ | ||
| 115 | 114 | ||
| 115 | char *ok_summary = NULL; | ||
| 116 | xasprintf(&ok_summary, "Users on the system: %d", user_wrapper.users); | ||
| 117 | mp_set_ok_summary(&overall, ok_summary); | ||
| 118 | free(ok_summary); | ||
| 119 | |||
| 120 | /* check the user count against warning and critical thresholds */ | ||
| 116 | mp_perfdata users_pd = { | 121 | mp_perfdata users_pd = { |
| 117 | .label = "users", | 122 | .label = "users", |
| 118 | .value = mp_create_pd_value(user_wrapper.users), | 123 | .value = mp_create_pd_value(user_wrapper.users), |
