mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
@@ -61,5 +61,6 @@ Contributors to LibreNMS:
|
||||
- Matthew Scully <matt@mattz0r.me.uk> (mattz0r)
|
||||
- Xavier Beaudouin <kiwi@oav.net> (xbeaudouin)
|
||||
- Falk Stern <falk@fourecks.de> (fstern)
|
||||
- Donovan Bridoux <donovan.bridoux@gmail.com> (PandaWawawa)
|
||||
|
||||
[1]: http://observium.org/ "Observium web site"
|
||||
|
||||
+1
-1
@@ -603,7 +603,7 @@ Input:
|
||||
|
||||
Example:
|
||||
```curl
|
||||
curl -H 'X-Auth-Token: YOURAPITOKENHERE' https://librenms.org/api/v0/alerts
|
||||
curl -H 'X-Auth-Token: YOURAPITOKENHERE' https://librenms.org/api/v0/alerts?state=1
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
@@ -602,8 +602,8 @@ function list_alerts() {
|
||||
global $config;
|
||||
$app = \Slim\Slim::getInstance();
|
||||
$router = $app->router()->getCurrentRoute()->getParams();
|
||||
if (isset($_POST['state'])) {
|
||||
$param = array(mres($_POST['state']));
|
||||
if (isset($_GET['state'])) {
|
||||
$param = array(mres($_GET['state']));
|
||||
}
|
||||
else {
|
||||
$param = array('1');
|
||||
|
||||
Reference in New Issue
Block a user