Hi Swapnil Pawar,
We are happy to inform you that we have implemented an exclusive plugin to monitor user process count. You can set threshold limits and get alerts if the user process count exceeds a particular threshold.
What is nproc?
nproc is a built-in command in a Linux system that is used to count the number of processing units available in a current system or to a current process. The maximum user processes (nproc) limit on Linux is the number of threads within all processes that can exist for a particular user. 1024 is the default value of nproc on some versions of Linux, and it is generally an insufficient number of threads for all processes. Technicians get error messages like "resource temporarily unavailable" or "error creating thread" when nproc is too low.
To avoid these errors because of low nproc, technicians can use the plugin available in the below link and monitor user processes count:
Create a directory named "process_count_monitoring" under the Site24x7 Linux Agent plugin directory:
Linux -> /opt/site24x7/monagent/plugins/process_count_monitoring
Download all the files in the "process_count_monitoring" folder and place them under the "process_count_monitoring" directory.
Execute the below command with appropriate arguments to check for the valid json output:
python3 process_count_monitoring.py --user_name=<USER NAME>
Provide the username in the process_count_monitoring.cfg file to monitor the user processes count.
In the next data collection event of the, the plugin will be discovered and marked up for monitoring. You can see the monitor under Server > Plugin Integrations. The plugin monitor will also be listed under the respective server monitor's Plugins tab (Server > Server Monitor > Servers > click on the desired server monitor > Plugins). You can also set up threshold profiles and get alerts when the configured value exceeds set limits.
If you have any queries, please reply to this thread.