20 Commits

Author SHA1 Message Date
c4c98128d6 Fix device group search 2016-07-06 17:13:13 -05:00
6665fd8f95 Merge pull request #3700 from f0o/issue-3683
Fixed Device-Groups for multiple entries and glue-expansion
2016-07-05 09:09:09 +01:00
f0o
0f161921b9 Fix lookup syntax 2016-07-02 06:44:49 +00:00
f0o
21a0a18055 Fixed Device-Groups for multiple entries and glue-expansion 2016-06-22 08:42:48 +00:00
laf
a05cfbe9fb Removed global $debug line 2016-06-21 19:34:13 +01:00
laf
a194009917 Pretty up the polling process output 2016-06-21 01:41:45 +01:00
009840bf8a Store device group relationships in a pivot table. 2016-06-02 13:25:01 -05:00
laf
d5b6e0e8da Updated device-groups functions to support returning all data or just group id 2015-12-13 17:20:34 +00:00
laf
a73a997edc Added API call for listing devices by groups 2015-12-12 13:47:44 +00:00
laf
62b4c21a12 Added API calls for device groups 2015-12-12 12:58:07 +00:00
laf
d153cf4d6b Strip && and || from query for alerts in polling 2015-11-19 08:40:49 +00:00
03e8eacbfd Revert "Remove last logical operator from generated SQL in GenGroupSQL" 2015-11-21 09:23:17 +01:00
05d60936e6 Remove last logical operator from generated SQL in GenGroupSQL
Previously this function would output invalid SQL as a logical
operator would be included after every condition. This change
removes the final logical operator so the SQL is valid.

For example, previously the single rule:
`bgpPeers.bgpPeerRemoteAs = "6939" &&"`

Would generate:
```
SELECT DISTINCT(bgpPeers.device_id) FROM bgpPeers WHERE device_id=? && (bgpPeers.bgpPeerRemoteAs = "6939" &&) LIMIT 1
```

This changes means it will generate:
```
SELECT DISTINCT(bgpPeers.device_id) FROM bgpPeers WHERE device_id=? && (bgpPeers.bgpPeerRemoteAs = "6939") LIMIT 1
```
2015-11-20 14:58:21 +00:00
f0o
407afd022a Add RegEx support to alert rules and device groups 2015-09-26 17:30:19 +00:00
b5db25c436 Adding ORDER BY so device groups are sorted by name instead of creation.
Currently the function for retrieving device_groups returns rows in the order
in which they were created.  This causes the WebUI to display is a semi-random
order.  This patch causes the devices to be sorted by name which makes the
group lists easier to navigate.
2015-08-03 15:18:21 -08:00
f0o
89caa7758f Added DeviceGroup-Macros 2015-07-15 19:56:18 +00:00
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
4bef35c90a Now save the connection value selected and remove when not needed 2015-06-27 17:41:31 +01:00
f0o
c75d00a5af Updated Device-Group SQL-Update 2015-04-20 16:44:01 +00:00
f0o
ba99eb25a2 Device-Groups Draft 2015-04-03 18:22:29 +00:00