Monitor apache httpd for process count

Hi i am testing check-mk2.2

i wish to monitor apache httpd, for process count, if httpd process exceeds 40 count , we should receive Warn , and Ok(if process count 1 to 30 ) and CRITICAL if exceeds 60 .
how i can set the same ? currently
image

currenyl in apache plugin only, busy workers and Open Slots are allowed to configure
image

The Apache plugin is not for the process count monitoring.
Here you should use the rule “Service monitoring rules” → “State and count of processes”. It is possible to define a direct process name or a regular expression what you want to find.

hi Andreas

Thanks for the Reply.

i tried configuring Service monitoring rule (State and count of processes) as shown in screen-shot.but its not detecting mentioned services. it seems i m missing something here .

image

Sorry one more rule is needed under → “Service discovery rules” → “Process discovery”
The system needs to know what processes you want to discover.
Inside this rule you can already define default parameter. But i would use the other rule for the parameters.

hi Andereas

its working now , thanks.

hi Andreas

Thanks for the reply.

i want to check 2 strings in processname , how we can check that ?

ps auwx | grep -i sendsms | grep tomcat9j11

The command line can be a complex regex.
I would test my regex inside a tool like regex101.com

1 Like

Thanks andreas for the reply.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.