Possible to use nxlog to regularly check service status?

Tags:

#1 steven.su

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

#2 rafDeactivated Nxlog ✓
#1 steven.su
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

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