I am trying to monitor our NTP servers to make sure they have a peer in use. I am using
to check to see if NTP has a peer it is using. If there is no peer, then I get a null value and I should get an alert. Easy enough. What I can't seem to get to work is a trigger. I have been experimenting with variations of length() with little success.
seems to work well enough, however I only want it to alert if it has been in this state for 15 minutes.
and variations of this won't parse and I am stuck.
Any kind soul with ideas?
Code:
system.run[ntpq -p| grep '*']
Code:
length(last(/OPNSense1/system.run[ntpq -p| grep '*']))=0
Code:
length((last(/OPNSense1/system.run[ntpq -p| grep '*'])),15m)=0
Any kind soul with ideas?
Comment