Kaspersky Security Center monitoring helper
This is a little Powershell script help to fetch metric’s values from Kaspersky Security Center (KSC).
Actual release 0.99
Tested on:
Supported objects:
Virtual keys for ‘Host’ object are:
_Status.{OK | Critical | Warning | Any }_ - Host(s) extended status: Any, OK, Critical, Warning; |
_RTPState.{Unknown | Stopped | Suspended | Starting | Running | Failure}_ - Realtime protection on host is Unknown/Stopped/Suspended/etc; |
Virtual keys for ‘License’ object are:
Virtual keys for ‘Server’ object are:
Actions
# Make Zabbix's LLD JSON for Licenses on Kaspersky Security Center Server
powershell.exe -NoProfile -ExecutionPolicy "RemoteSigned" -File "ksc.ps1" -Action "Discovery" -ObjectType "License"
# Get number of Hosts which have Critical State
... "ksc.ps1" -Action "Count" -ObjectType "Host" -Key "Status.Critical" -consoleCP CP866
# Get expiration date of license with "1C1C-000423-1323DEA0" serial number
... "ksc.ps1" -Action "Get" -ObjectType "License" -Key "KLLIC_LIMIT_DATE" -Id "1C1C-000423-1323DEA0"
Note Do not try import Zabbix v2.4 template to Zabbix pre v2.4. You need to edit .xml file and make some changes at discovery_rule - filter tags area and change # to <> in trigger expressions. I will try to make template to old Zabbix.
Note It is possible that you will need to provide the script with the credentials of user from the KLAdmins group to connect to the server. Refer to Username / Userpass / UserDomain options.
Note All available options are described in head of the script file.
Beware frequent requests to PowerShell script eat CPU and increase Load. To avoid it - don’t use small update intervals with Zabbix’s Data Items and disable unused.