Hello,
i am getting value from WMI from windows server by "vmic" program on linux proxy.
i am using this query:
wmic -U domain/user%password //servername "SELECT LastBootUpTime FROM Win32_OperatingSystem"
And it shows value in this form:
20190514192246.485396+120
Description of this value for your better for info is:
"
LastBootUpTime
Type - DateTime - Normalized Value: 14.05.2019 19:22:46
Time when the operating system was last booted
"
I am filtering it by two scripts:
One will filter it to this form (in zabbix data type text) - (date and time and cut non importatnt ):
14.05.2019 19:22
One will filter it to this form (in zabbix data type nummeric) - (date and cut non importatnt ):
20190514
And question is:
1) How to write trigger, or which trigger function i have to use, when i want to sent only informational message to dashboard, when the time of server windows system boot is 3 days younger then zabbix server proxy time.
i am getting value from WMI from windows server by "vmic" program on linux proxy.
i am using this query:
wmic -U domain/user%password //servername "SELECT LastBootUpTime FROM Win32_OperatingSystem"
And it shows value in this form:
20190514192246.485396+120
Description of this value for your better for info is:
"
LastBootUpTime
Type - DateTime - Normalized Value: 14.05.2019 19:22:46
Time when the operating system was last booted
"
I am filtering it by two scripts:
One will filter it to this form (in zabbix data type text) - (date and time and cut non importatnt ):
14.05.2019 19:22
One will filter it to this form (in zabbix data type nummeric) - (date and cut non importatnt ):
20190514
And question is:
1) How to write trigger, or which trigger function i have to use, when i want to sent only informational message to dashboard, when the time of server windows system boot is 3 days younger then zabbix server proxy time.