Skip to content

Nagios Plugin check_nbprocs

Davide Madrisan edited this page Feb 16, 2017 · 1 revision

check_nbprocs - displays the number of running processes per user

[/etc/nrpe.d/check_nbprocs]
command[check_nbprocs]=/usr/lib/nagios/plugins/check_nbprocs --threads -w 1500 -c 2000
Usage note
This plugin displays the number of running processes per user.
Copyright (C) 2014,2015 Davide Madrisan <davide.madrisan@gmail.com>
Usage:
  check_nbprocs [-w COUNTER ] [-c COUNTER]
Options:
  -t, --threads   display the number of threads
  -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_nbprocs
  check_nbprocs --threads -w 1500 -c 2000
Example of output
nbprocs OK - 1163 running processes | nbr_root=230;63516;63516;0 nbr_systemd-timesync=2;63516;63516;0 nbr_messagebus=1;63516;63516;0 nbr_systemd-network=1;63516;63516;0 nbr_avahi=2;63516;63516;0 nbr_polkitd=5;63516;63516;0 nbr_systemd-resolve=1;63516;63516;0 nbr_apache=81;63516;63516;0 nbr_postfix=2;63516;63516;0
Performance data

nbr_root ...