I have a Service that I need to tweak something depending on whether the check occurs during the day or night. If day, then I want a threshold variable to be X. If night, I want it to be Y.
I know I can create two different Services and assign them each a different time period. But, instead of doing this is it possible to reference the system clock inside an IF statement? This would save me a lot of typing, as I've got a lot of different services. Something like this: vars.dummy_state = {{ if (system_time() > 0700 && system_time() < 2200) { threshold = 0 } else { threshold = 20 } Possible? -- --- Michael Martinez http://www.michael--martinez.com _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users