Craig Morgan wrote:
> The ruleset is for running in the back background. It's a simple
> ruleset, it will Email and page the appropriate people on call between
> 6:00PM and 7:00AM. I just need help setting up the time period.
I would suggest that you create a shell script and set it up as an
inline action node in your ruleset, just before your page node. Make
sure you filter everything you need before this stage (you don't want to
call an inline for every trap!). The script would be something like:
if [[ $(date +%H) -lt 7 ]] || [[ $(date +%H) -gt 18 ]]
The return code for the inline to allow the event to be passed onto the
next node is 0. Timeout would be something sensible like 5 seconds.
Ray Schafer | firstname.lastname@example.org
The Kernel Group | Network Computing Consulting
Archive operated by Skills 1st Ltd
See also: The NetView Web