Ad Widget

Collapse

Only monitor processes when application is installed.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fr1ts1e
    Junior Member
    • Feb 2023
    • 2

    #1

    Only monitor processes when application is installed.

    Hi,

    I am looking to find a way to create an item that only starts monitoring a process when the application that usage that process is installed.

    For example some apache servers we have. The item should do something like when 'system.sw.packages[apache2]" is 1 then monitor the apache process.
    If "system.sw.packages[apache2]" = 0 then do nothing.

    Is this possible in Zabbix?

    Regards,
    Frits

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

    #2
    Discovery is the keyword you should look for in documentation...

    Comment

    • Fr1ts1e
      Junior Member
      • Feb 2023
      • 2

      #3
      Originally posted by cyber
      Discovery is the keyword you should look for in documentation...
      Looks like the systemd.unit.discovery is only supported under Zabbix Agent 2. We are unfortunately on a lower version.

      Comment

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

        #4
        But you can always write your own scripts to do similar work... UserParameters are for such cases... Or install agent2 ... That's not really a "higher version". It is just a different version and can replace classic agent.
        You have options, just need to pick the one(s) you want to use...​

        Comment

        Working...