Monitoring apache threads

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Monitoring apache threads

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring apache threads

Post 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.
Former Nagios Employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Monitoring apache threads

Post 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...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring apache threads

Post 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.
Former Nagios Employee
Locked