Page 1 of 1
Monitoring apache threads
Posted: Wed Aug 31, 2016 3:09 am
by sify_nagios
Dear Team,
My team would like to identify the option for monitoring apache threads.
I could find only plugin which can tell me concurrent session and something else.. Nothing on threads.
Could you please help us in priority.
Thanks in advance.
Regards
Srinivasan Ravichandran
Re: Monitoring apache threads
Posted: Wed Aug 31, 2016 8:20 am
by rkennedy
Does this command return the count you're looking for?
Code: Select all
ps -o pid,comm,user,thcount -u apache | grep apache | wc -l
If so, it should be fairly easy to convert into a plugin.
Re: Monitoring apache threads
Posted: Wed Aug 31, 2016 1:02 pm
by gormank
Not sure if they're what you want but I use check_init_service for services (no count), and check_procs. check_procs can have a minimum number of running processes. check_init_service may take more args to specify a count.
If its httpd for example, you can use the 1st to check the service is running and the 2nd to verify the specified number of processes are running.
Or I'm confused...
Re: Monitoring apache threads
Posted: Wed Aug 31, 2016 3:26 pm
by rkennedy
Thanks @gormank!
That works as well. @sify_nagios - hopefully one of these solutions will work. Let us know when you have a chance to review our answers.