Ad Widget

Collapse

Multi-process template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • foss4ever
    Junior Member
    • Sep 2023
    • 3

    #1

    Multi-process template

    First post here, so please be gentle

    How can I set up a template that allows for defining a comma-separated list of Windows processes to monitor?
    It would be ideal, although not strictly necessary, if I could also provide a pattern to match, in case different processes of interest have the same key word as part of the process name/executable.

    The suggestions I'm finding are for templates that will monitor 1 process only, and I find it a bit hard to see how to go from here, to a multi-process template.


    Background:
    I need to monitor around 15 business-critical processes spread across 3 Windows servers and be able to get a problem of severity "warning" in case 1 process is not running/not present and "high" in case 2 or more are not present.
    It would be highly preferable for this use case to be able to apply just 1 template for checking the presence of a number of processes, instead of having to create and apply a number process-specific templates for each server.​

    EDIT:
    Forgot to mention my Zabbix Server version: 6.0.17
    Last edited by foss4ever; 07-09-2023, 13:00.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    With windows you are in trouble... as proc.num only accepts name and user parameter. So you still need to configure item per process...

    For linux proc,num does take "command line" argument as regex, so you could try adding all you processes there as regex... and get total number out of it.

    Comment

    • foss4ever
      Junior Member
      • Sep 2023
      • 3

      #3
      Originally posted by cyber
      With windows you are in trouble... as proc.num only accepts name and user parameter. So you still need to configure item per process...

      For linux proc,num does take "command line" argument as regex, so you could try adding all you processes there as regex... and get total number out of it.

      How about using discovery rules to automatically generate an item per processname mentioned in a macro on the template. Or am I not making sense, here?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        For windows services we have built-in service.discovery key, which helps to do that disco... for processes, you need to invent it...

        Comment

        • PeterZielony
          Senior Member
          • Nov 2022
          • 146

          #5
          Originally posted by foss4ever


          How about using discovery rules to automatically generate an item per processname mentioned in a macro on the template. Or am I not making sense, here?
          Are those "processes" are installed as a service? I do have something probably not even close to your asnwer, i do monitor process statistics (perf counter per process id) from discovered windows services filtered only to buisness critical ones only.
          you can go crazy with imagination


          How do you start/stop them?
          do you have some sorts of config file controlling them or ther are self contained sub processess of main process?

          I would say sverything is possible but we would need more details and more technical overview really
          Last edited by PeterZielony; 11-09-2023, 21:57.

          Hiring in the UK? Drop a message

          Comment

          Working...