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?
Jeroen_Gouma
Posted 1 year ago·Last reply 1 year ago
6 comments
venkat
·1 year agoEasiest way to use a Datasource and then run the discovery for the specific process and create and Applies to include on the required hosts
Shack
·1 year agoI think you can clone the LinuxProcesses datasource and make it Active Discovery, use a filter grab whatever it is your are looking for.
Jeroen_Gouma
OP1 year agoHi Admine,
thank you for this hint. Do you have a link to any documentation about this? Or is it a undocumented feature?
I have been checking https://www.logicmonitor.com/support/rest-api-v3-swagger-documentation, but no luck.
Admine
·1 year agoHi 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.
Admine
·1 year agoYou can use the LogicMonitor v3 REST API to automate the creation of process monitoring instances.
Admine
·1 year agoEndpoint: POST /device/devices/{deviceId}/addmonitors
Payload structure: JSON object specifying the DataSource, instance parameters, and wildvalue (process name)