Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armatura-create/cs2-advancedmonitoring
Plugin Monitoring GET data from HTTP
https://github.com/armatura-create/cs2-advancedmonitoring
addon counter-strike-2 counterstrikesharp cs2 css metamod plugin
Last synced: about 2 months ago
JSON representation
Plugin Monitoring GET data from HTTP
- Host: GitHub
- URL: https://github.com/armatura-create/cs2-advancedmonitoring
- Owner: Armatura-Create
- Created: 2024-05-31T08:16:59.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T06:40:35.000Z (7 months ago)
- Last Synced: 2024-06-11T22:13:19.341Z (7 months ago)
- Topics: addon, counter-strike-2, counterstrikesharp, cs2, css, metamod, plugin
- Language: C#
- Homepage: https://armaturix.net
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [CS2] Advanced Monitoring
AdvancedMonitoring is a plugin for the CS2
server designed to monitor the server and player states using an HTTP API. The plugin provides information about the current server status, including the player list, through HTTP requests.# Installation
1. Download the latest release of the plugin from [this link](https://github.com/Armatura-Create/cs2-advancedMonitoring/releases).
2. Extract the downloaded files to **/addons/counterstrikesharp/plugins/**# Features:
Config File located in **/addons/counterstrikesharp/configs/plugins/AdvancedMonitoring** with Settings:
- custom endpoint request
- interval update data
- show bots
- show hltv
- access_friendly_fire - Count friendly damage (for DM server)# Config
**AdvancedMonitoring.json**``` json
{
"Endpoint": "monitoring-info",
"MinIntervalUpdate": 30,
"AccessFriendlyDamage": false,
"ShowBots": true,
"ShowHLTV": true,
"Debug": true
}
```- Endpoint: The access point for HTTP requests.
- MinIntervalUpdate: The minimum interval for server data updates in seconds.
- AccessFriendlyDamage: Adds damage accounting on DM servers
- ShowBots: Whether to show bots in the player list.
- ShowHLTV: Whether to show HLTV players in the player list.
- Debug: Enable debug mode for logging console server.# Usage
1. Start the CS server with the plugin installed.
2. Make a POST or GET request to the server to get the data:
``` sh
curl -X GET http://server-ip:server-port/monitoring-info/
```
3. Response **json**
``` json
{
"Name": "HOSTNAME",
"MapName": "map_name",
"Port": 27015,
"IP": "1.1.1.1",
"MaxPlayers": 26,
"TimeMap": 366,
"TScore": 0,
"CTScore": 0,
"Players": [
{
"Name": "PlayerName",
"Slot": 2,
"SteamID64": "123",
"SteamID32": "123",
"SteamID2": "STEAM_0:1:123",
"SteamID3": "[U:1:123]",
"Statistic": {
"Kills": 0,
"Headshots": 0,
"KnifeKills": 0,
"Damage": 59,
"Deaths": 1,
"Assists": 0,
"Shoots": 0,
"Score": 0
},
"Ping": 41,
"TeamName": "Spectator",
"PlayTime": 167,
"IsBot": false,
"IsHLTV": false,
"IsSpec": true
}
]
}
```# Requirements:
[CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp) v236 or higher