All Projects → zbx-sadman → KSC

zbx-sadman / KSC

Licence: GPL-3.0 license
Kaspersky Security Center monitoring helper

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to KSC

Django Oms
加强版运维系统,集成工单、发布、监控、管理dns、saltstack
Stars: ✭ 201 (+1446.15%)
Mutual labels:  zabbix
zabbix-mini-IPMI
Disk and CPU temperature monitoring for Linux, FreeBSD and Windows. LLD, trapper.
Stars: ✭ 82 (+530.77%)
Mutual labels:  zabbix
zabbix-pgsql-partitioning
Partitioning scripts for Zabbix on PostgreSQL
Stars: ✭ 26 (+100%)
Mutual labels:  zabbix
Ewp oms
自动化运维系统(saltstack+django+bootstrap),QQ群342844540,博客http://ywzhou.blog.51cto.com
Stars: ✭ 211 (+1523.08%)
Mutual labels:  zabbix
zbxdb
Zabbix database monitoring, the easy and extendable way
Stars: ✭ 87 (+569.23%)
Mutual labels:  zabbix
docker-alpine
Docker Alpine Linux Base Images
Stars: ✭ 27 (+107.69%)
Mutual labels:  zabbix
Zabbix manager
🍀 (1)安装后一键设置 (2)日常管理工具 (3)一键导出常用报表 (4)Zabbix API 二次开发
Stars: ✭ 192 (+1376.92%)
Mutual labels:  zabbix
Zabbix-Extensions
Some plugins for using Zabbix
Stars: ✭ 15 (+15.38%)
Mutual labels:  zabbix
zabbix-cachet
Python script which sync Zabbix IT Services with Cachet
Stars: ✭ 78 (+500%)
Mutual labels:  zabbix
helm-zabbix
Helm Chart For Zabbix
Stars: ✭ 56 (+330.77%)
Mutual labels:  zabbix
Rabbitmq Zabbix
Zabbix RabbitMQ Configuration
Stars: ✭ 241 (+1753.85%)
Mutual labels:  zabbix
Golang Stats Api Handler
Golang cpu, memory, gc, etc information api handler.
Stars: ✭ 247 (+1800%)
Mutual labels:  zabbix
Email-Graph-ZABBIX Python
No description or website provided.
Stars: ✭ 16 (+23.08%)
Mutual labels:  zabbix
Zbx Smartctl
Templates and scripts for monitoring disks health with Zabbix and smartmontools
Stars: ✭ 206 (+1484.62%)
Mutual labels:  zabbix
zabbix-discord
Alertscript for zabbix to enable discord notifications
Stars: ✭ 27 (+107.69%)
Mutual labels:  zabbix
Zabbix
Zabbix Plugin
Stars: ✭ 195 (+1400%)
Mutual labels:  zabbix
zabbix-module-python
Embedded Python interpreter module for Zabbix
Stars: ✭ 32 (+146.15%)
Mutual labels:  zabbix
community.zabbix
Zabbix Ansible modules
Stars: ✭ 224 (+1623.08%)
Mutual labels:  zabbix
libzbxmodbus
Loadable module to integrate Modbus (RTU, TCP and encapsulated) into Zabbix. Bulk data collection included.
Stars: ✭ 44 (+238.46%)
Mutual labels:  zabbix
zapish
zapish - Zabbix API SHell binding
Stars: ✭ 28 (+115.38%)
Mutual labels:  zabbix

PS-Check

KSC Miner

This is a little Powershell script help to fetch metric's values from Kaspersky Security Center (KSC).

Actual release 0.99

Tested on:

  • Production mode: Windows Server 2008 R2 SP1, Powershell 2, Kaspersky Security Center 10 SP2
  • Production mode: Windows Server 2019 Standard, Powershell 5.1, Kaspersky Security Center 12.2.0.4376

Supported objects:

  • Server - KSC server;
  • Host - Managed server / workstation;
  • License - License data.

Virtual keys for 'Host' object are:

  • Unassigned - Host(s) contained in "Unassigned" group;
  • 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;
  • NotInstalledAVApplication - Anti-virus application is not installed on host;
  • NotRunningAVApplication - Anti-virus application is installed on host but not running;
  • NotRunningRTP - Anti-virus application is installed but real-time protection on host is not running;
  • TooMuchVirusesDetected - Number of viruses detected on host is too much;
  • TooOldAVBases - Anti-virus bases on host were updated too long ago;
  • FullScanPerformedTooLongAgo - Full scan for viruses performed too long ago;
  • AgentIsInactiveTooLong - Network agent is inactive too long;
  • AVBasesAgeLess1Hr - Anti-virus bases were updated in last hour;
  • AVBasesAgeIs24Hrs - Anti-virus bases were updated between an 1..24 hour ago;
  • AVBasesAgeIs1-3Days - Anti-virus bases were updated between an 1..3 days ago;
  • AVBasesAgeIs3-7Days - Anti-virus bases were updated between an 3..7 days ago;
  • AVBasesAgeMoreThan7Days - Anti-virus bases were updated more than 7 days ago.

Virtual keys for 'License' object are:

  • TimeLeftToLicenseExpire - Time left to end of license (in seconds);
  • LicenseExpired - "License is expired" flag.

Virtual keys for 'Server' object are:

  • Build - Administration Server build number;
  • VersionId - ID of Administration Server version;
  • SAASBlocked - SAAS mode is turned off due to expired/absent/blacklisted license, boolean.

Actions

  • Discovery - Make Zabbix's LLD JSON;
  • Get - Get metric from collection item;
  • Sum - Sum metrics of collection items;
  • Count - Count collection items.

How to use standalone

# 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"

How to use with Zabbix

  1. Just include zbx_ksc.conf to Zabbix Agent config;
  2. Put ksc.ps1 to _C:\zabbix\scripts_ dir;
  3. Set Zabbix Agent's / Server's Timeout to more that 3 sec (may be 10 or 30);
  4. Import template to Zabbix Server;
  5. Watch to Zabbix's Latest Data.

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.

Hints

  • To see keys, run script without -Key option: ... "ksc.ps1" -Action "Get" -Object "ObjectType"
  • For debug in standalone mode use -defaultConsoleWidth option to leave console default width while run script and -Verbose to get additional processing information;
  • If you get Zabbix's "Should be JSON" - try to increase the number value in CONSOLE_WIDTH constant variable inside ksc.ps1. Powershell use console width to format output JSON-lines and can break its.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].