Hi.
I want to define a trigger for a group of machines which is based on time of day. For example alert me if less than 10 users are present except at night and weekends.
The problem is that each machine is in a different timezone. The localtime parameter gives me a unix timestamp so I can't create a trigger based on that. I can create triggers based on the time of the monitor server but that doesn't really help me because it does not track time zone changes.
How do I extract the time and the date (and possibly the day of the week) from the localtime?
What other alternatives do I have?
I want to define a trigger for a group of machines which is based on time of day. For example alert me if less than 10 users are present except at night and weekends.
The problem is that each machine is in a different timezone. The localtime parameter gives me a unix timestamp so I can't create a trigger based on that. I can create triggers based on the time of the monitor server but that doesn't really help me because it does not track time zone changes.
How do I extract the time and the date (and possibly the day of the week) from the localtime?
What other alternatives do I have?
Comment