Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_linux_threadcount
v1.0
2018-12-19
- Nagios 3.x
- Nagios 4.x
@kadirsert
GPL
5026
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
-------------
This Nagios Plugin calculates count of threads for one or more Linux process(es). One can give pid number or pid file path to identify the unique process. pid_cmd_regex is useful when monitoring sum of thread counts for multiple processes.
Usage:
--------
check_linux_threadcount.py {-w,--warn} {-c,--crit} {--pid_number,--pid_file,--pid_cmd_regex}
Examples:
------------
Monitoring the process with pid number 1757:
check_linux_threadcount.py -w 1500 -c 2000 --pid_number 1757
Monitoring the process by using pid file:
check_linux_threadcount.py --warn 2000 --crit 2200 --pid_file /var/run/autofs.pid
Getting sum of the thread counts for multiple jboss instances:
check_linux_threadcount.py -w 1500 -c 2000 --pid_cmd_regex ".*org.jboss.Main.*"
Reviews (0)
Be the first to review this listing!