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

[docs] Add information about default alert settings #611 fixes #611 #640

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions docs/user/device-checks-and-alert-settings.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,59 @@
Managing Device Checks & Alert Settings
=======================================

**Overview of default checks**

1. Ping Check
-------------
* **Triggers when**: Value is less than 1
* **Wait time**: 0 minutes (immediate)
* **Sets status**: Critical
* **Meaning**: Device is unreachable

2. Config Applied Check
-----------------------
* **Triggers when**: Value is less than 1
* **Wait time**: 5 minutes
* **Sets status**: Problem
* **Meaning**: Configuration hasn't been updated for over 5 minutes

3. WiFi Clients Check
---------------------
Maximum:
^^^^^^^^
* **Triggers when**: More than 50 clients
* **Wait time**: 120 minutes (2 hours)
* **Sets status**: Problem
* **Meaning**: Too many clients connected

Minimum:
^^^^^^^^
* **Triggers when**: Less than 1 client
* **Wait time**: 0 minutes (immediate)
* **Sets status**: Problem
* **Meaning**: No clients connected

4. Disk Usage Check
-------------------
* **Triggers when**: Usage exceeds 90%
* **Wait time**: 0 minutes (immediate)
* **Sets status**: Problem
* **Meaning**: Disk space is nearly full

5. Memory Usage Check
---------------------
* **Triggers when**: Usage exceeds 95%
* **Wait time**: 5 minutes
* **Sets status**: Problem
* **Meaning**: High memory consumption persists

6. CPU Usage Check
------------------
* **Triggers when**: Usage exceeds 90%
* **Wait time**: 5 minutes
* **Sets status**: Problem
* **Meaning**: High CPU load persists

We can add checks and define alert settings directly from the **device
page**.

Expand Down
5 changes: 1 addition & 4 deletions openwisp_monitoring/device/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,7 @@ def save_wifi_clients_and_sessions(self):
active_sessions.append(session_obj.pk)

# Close open WifiSession
WifiSession.objects.filter(
device_id=self.id,
stop_time=None,
).exclude(
WifiSession.objects.filter(device_id=self.id, stop_time=None,).exclude(
pk__in=active_sessions
).update(stop_time=now())

Expand Down
Loading