Skip to content

Nagios Plugin check_users

Davide Madrisan edited this page Dec 18, 2016 · 1 revision

check_users - display the number of users that are currently logged on

[/etc/nrpe.d/check_users]
command[check_users]=/usr/lib/nagios/plugins/check_users -w 1
Usage note
This plugin displays the number of users that are currently logged on.
Copyright (C) 2014,2015 Davide Madrisan <davide.madrisan@gmail.com>

Usage:
   check_users [-w COUNTER] [-c COUNTER]
Options:
  -w, --warning COUNTER    warning threshold
  -c, --critical COUNTER   critical threshold
  -v, --verbose   show details for command-line debugging (Nagios may truncate output)
  -h, --help      display this help and exit
  -V, --version   output version information and exit

Examples:
  check_users -w 1
Example of output
users WARNING - 14 users logged on | logged_users=14
Performance data

logged_users