Go to file
Yaodong Yu f4e867b238
feat: collect machine CPU, memory, disk info by SSH (#91)
* feat: collect machine metrics by ssh

* fix: clean code

* fix: clean code

* fix: clean code

* fix: clean code

* fix: clean code
2024-05-20 01:38:19 +08:00
.github feat: change import path 2024-03-23 21:33:02 +08:00
authz feat: change import path 2024-03-23 21:33:02 +08:00
conf feat: support RDP connection to private IP machines (#75) 2024-04-07 13:51:31 +08:00
controllers feat: add file manager (#86) 2024-05-08 23:16:52 +08:00
data fix: make 17monipdb.dat embed file 2024-03-30 11:42:03 +08:00
dbgate feat: fix mkdir error in start stage (#74) 2024-03-27 16:34:35 +08:00
i18n feat: add i18n code 2024-03-30 09:50:38 +08:00
metric feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00
object feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00
proxy feat: support RDP connection to private IP machines (#75) 2024-04-07 13:51:31 +08:00
routers feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00
storage feat: add file manager (#86) 2024-05-08 23:16:52 +08:00
task feat: change import path 2024-03-23 21:33:02 +08:00
util feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00
web feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00
.dockerignore feat: support semantic-release 2023-09-12 11:20:26 +08:00
.gitattributes Add .gitattributes 2024-03-23 18:51:33 +08:00
.gitignore Add server code. 2023-07-31 18:26:00 +08:00
.releaserc.json feat: support semantic-release 2023-09-12 11:20:26 +08:00
Dockerfile feat: refactoring dbgate config (#73) 2024-03-23 21:33:08 +08:00
LICENSE Initial commit 2023-07-30 00:38:44 +08:00
README.md feat: change import path 2024-03-23 21:33:02 +08:00
build.sh feat: add Dockerfile and docker-compose.yml (#58) 2024-02-14 11:25:29 +08:00
docker-compose.yml feat: modernized docker-compose.yml (#94) 2024-05-16 13:50:13 +08:00
docker-entrypoint.sh feat: refactoring dbgate config (#73) 2024-03-23 21:33:08 +08:00
entrypoint.sh feat: refactoring dbgate config (#73) 2024-03-23 21:33:08 +08:00
go.mod feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00
go.sum feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00
main.go feat: collect machine CPU, memory, disk info by SSH (#91) 2024-05-20 01:38:19 +08:00

README.md

📦 Casvisor

An open-source logging and auditing system developed by Go and React.

semantic-release docker pull casbin/casvisor GitHub Release Docker Image Version (latest semver)

Go Report Card license GitHub issues GitHub stars GitHub forks

image

Online demo

Documentation

https://casvisor.org

Architecture

Casvisor contains 2 parts:

Name Description Language Source code
Frontend Web frontend UI for Casvisor Javascript + React https://github.com/casvisor/casvisor/tree/master/web
Backend RESTful API backend for Casvisor Golang + Beego + MySQL https://github.com/casvisor/casvisor

Installation

Casvisor uses Casdoor to manage members. So you need to create an organization and an application for Casvisor in a Casdoor instance.

Necessary configuration

Get the code

go get github.com/casdoor/casdoor
go get github.com/casvisor/casvisor

or

git clone https://github.com/casdoor/casdoor
git clone https://github.com/casvisor/casvisor

Setup database

Casvisor will store its users, nodes and topics informations in a MySQL database named: casvisor, will create it if not existed. The DB connection string can be specified at: https://github.com/casvisor/casvisor/blob/master/conf/app.conf

dataSourceName = root:123@tcp(localhost:3306)/

Casvisor uses XORM to connect to DB, so all DBs supported by XORM can also be used.

Configure Casdoor

After creating an organization and an application for Casvisor in a Casdoor, you need to update clientID, clientSecret, casdoorOrganization and casdoorApplication in app.conf.

Run Casvisor

  • Configure and run Casvisor by yourself. If you want to learn more about casvisor.
  • Open browser: http://localhost:16001/

Optional configuration

Setup your Casvisor to enable some third-party login platform

Casvisor uses Casdoor to manage members. If you want to log in with oauth, you should see casdoor oauth configuration.

OSS, Mail, and SMS services

Casvisor uses Casdoor to upload files to cloud storage, send Emails and send SMSs. See Casdoor for more details.

RDP service

Run guacd for rdp connection.

docker run --name some-guacd -d -p 4822:4822 guacamole/guacd

Contribute

For Casvisor, if you have any questions, you can give Issues, or you can also directly start Pull Requests(but we recommend giving issues first to communicate with the community).

License

Apache-2.0