2
responses

Hi,

We have the use case to get the specific service's status hourly and it could be done via some PowerShell commands. However, we don't want maintain the script in users' hosts and want to integrate the checking into nxlog's configuration. Does nxlog agent has the capability to run such command hourly? Or will there be any alternative method?

Many thanks in advance !

Best regards,
Steven

AskedSeptember 29, 2021 - 5:25am

Answer (1)

Hey Steven,

I think you might be interested in using the schedule block - you can find a couple of examples in the documentation..

Hope this helps!
Raf

Comments (1)

  • steven.su's picture

    Hey Raf,

    Thanks for the suggestion. It seems the schedule block could not be used to run the PowerShell script.

    However, my alternative way is to embed the one-line "while true" script in im-exec's Arg to achieve the goal. It works in my case.

    Best regards,
    Steven