7.6 Keeping Tabs on the Number of Logged-In Users
The plugin check_users
is used to monitor the number of logged-in users:
user@linux:nagios/libexec$ ./check_users -w 5 -c 10
USERS CRITICAL - 20 users currently logged in |users=20;5;10;0
It has just two options:
-w
number
/ --warning=
number
This is the threshold for the number of logged-in users after which the plugin should give a warning.
-c
number
/ --critical=
number
This is the threshold for a critical state, measured by the number of logged-in users.
The performance data after the |
is as usual visible only on the command line; Nagios does not include it in the Web interface.
Get Nagios, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.