Hello everyone,
For my company i need to count a number of specific process running on a system and get an alert on my centreon dashboard if that number is superior than N.
I really apreciate if you have any solution or suggestion.
Regards.
Hello everyone,
For my company i need to count a number of specific process running on a system and get an alert on my centreon dashboard if that number is superior than N.
I really apreciate if you have any solution or suggestion.
Regards.
Best answer by christophe.niel-ACT
mhh with nsclient (i’m assuming that’s the agent you have) there is this documentation
CheckSystem (Windows) - NSClient++ which include a check_process
this is a bit tricky to use with the way it’s setup in centreon and the default template but, first thing first, the process name is case sensitive
here is how you would setup your service with the macro using the default custom template you need to modifiy some default macro otherwise it could return lots of text (one for each process running matching the name)
here I used that template :

there is the exact same one with NRPE
and you need to set the macro: (look the explorer.exe with CAPS, most exe are in lower case, but sometimes they have uppercase, couldn’t find a way to ignore case)

here the text for the “topsyntax” macro : ${status}: Process count: ${count}
it will give you warning and critical, if you don’t want warning, put “ none “ without quote
you will even have a graph with the process count

No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.