Forum Discussion

Jeroen_Gouma's avatar
23 days ago

Add "Additional monitoring" automatic way

We have the requirement to actively monitor if the anti-virus software is running on several linux servers. Manually I can add this via the "additional monitoring" option on each host. 

But how to do this in an automated way? API, Terraform, Ansible or even shell script?

 

6 Replies

    • Admine's avatar
      Admine
      Icon for Neophyte rankNeophyte

      Hi Jeroen,

      Yes its not in the documentation as far as i know. But i think you can use the endpoint described in the swagger documentation and then any payload as long as its in the format of the payload described above.

  • You can use the LogicMonitor v3 REST API to automate the creation of process monitoring instances.

    • Admine's avatar
      Admine
      Icon for Neophyte rankNeophyte

      Endpoint: POST /device/devices/{deviceId}/addmonitors
      Payload structure: JSON object specifying the DataSource, instance parameters, and wildvalue (process name)

  • I think you can clone the LinuxProcesses datasource and make it Active Discovery, use a filter grab whatever it is your are looking for.

  • Easiest way to use a Datasource and then run the discovery for the specific process and create and Applies to include on the required hosts