Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Disk usage monitoring API route #1843

Closed
rriclet opened this issue Mar 17, 2021 · 0 comments · Fixed by #1846
Closed

[Feature Request] Disk usage monitoring API route #1843

rriclet opened this issue Mar 17, 2021 · 0 comments · Fixed by #1846
Assignees
Labels
feature request TheHive4 TheHive4 related issues
Milestone

Comments

@rriclet
Copy link
Contributor

rriclet commented Mar 17, 2021

Feature Request

Work Environment

Question Answer
TheHive version / git hash 4.x

Possible Solutions

TheHive API needs to have a route to monitor disk usage.

Example resquest :
GET /api/v1/monitor/disk (with permission managePlatform)

Example response :

[
    {
        "location": "/data",
        "freeSpace": 123123,
        "totalSpace": 12123354
    }
]

Complementary information

Add this key to configuration file :

application.conf:

monitor.disk: [
    {
        location: "/data"
    },
    {
        location: "/srv/backup"
    }
]
@rriclet rriclet added bug TheHive4 TheHive4 related issues and removed bug labels Mar 17, 2021
@rriclet rriclet self-assigned this Mar 17, 2021
rriclet added a commit that referenced this issue Mar 17, 2021
rriclet added a commit that referenced this issue Mar 17, 2021
@rriclet rriclet linked a pull request Mar 17, 2021 that will close this issue
@rriclet rriclet added this to the 4.1.0 milestone Mar 18, 2021
To-om added a commit that referenced this issue Mar 18, 2021
@To-om To-om closed this as completed Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request TheHive4 TheHive4 related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants