feature (or documentation) request

Jeremy Kister argus-02 at jeremykister.com
Tue May 26 12:49:46 EDT 2009


it'd be nice if argus' config could understand some kind of
rand() and time()

e.g., i want both functions evaluated at test time.


Group "foo" {
     # test one of the three hosts on any given poll
     host: rand(host1 host2 host3)
     messagedn: %o{hostname} says test foo is broken
     [...]
}

Service Prog {
     # make sure file was created recently
     cmd:      stat -c %Y /tmp/somefile
     expect:   ^[0-9]{10}$
     minvalue: (time() - 3600)
}


-- 

Jeremy Kister
http://jeremy.kister.net./


More information about the Arguslist mailing list