Commit Graph

166 Commits

Author SHA1 Message Date
a19b2614dc fix: added some timeout safeguards for curl calls (#5743) 2017-02-03 08:12:42 -06:00
76c91f8486 fixed sanitizing of google map information (#5738) 2017-02-03 09:26:04 +00:00
08edfc60e0 Sanitize Location string (#5589) 2017-01-26 08:11:11 +00:00
56bb0d2b97 fix: support hosts added by ipv6 without DNS #5567 2017-01-24 21:48:03 +00:00
32da1bceea fix: Changing device type now is persistant (#5529) 2017-01-22 09:49:13 +00:00
8557f2df41 newdevice: APC Environmental monitoring units #5140 2017-01-18 08:48:33 +00:00
b3f6218359 fix: os type and group not being set (#5357) 2017-01-09 08:16:09 +00:00
cc8e31d1a1 newdevice: Added support for Dasan NOS #5179 + disco change (#5255)
* newdevice: Added support for Dasan NOS #5179

* sysName -> sysDescr - doh

* updated functions

* Updated discovery of OS functions

* added missing test units

* mibs added

* Allow multiple regex statements per sysDescr_regex

* Fix style/code issues

* added docs
2017-01-03 14:04:18 -06:00
f5a16be0e3 refactor: Move OS definitions into yaml files (#5189) 2016-12-23 17:53:19 +00:00
e67572cfb7 fix: Add check for differently named Cisco Power sensor (#5119) 2016-12-07 00:30:56 +00:00
db240cb4eb refactor: Collection and output of db and snmp stats (#5049) 2016-11-23 06:57:19 +00:00
9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
a83e126b40 refactor: Remove inappropriate usages of truncate() (#5028)
Where truncate() is used as substr(), replace with substr()
2016-11-20 11:12:25 +00:00
8841eece94 feature: Adds support for enabling / disabling modules per OS (#4963)
* fixes #4946
first try, should be checked first
only discovery first

* add OS modules status indication

* add debug output
add os poller module support

* fix some whitespaces

* fix missing semicolon

* fix some whitespaces

* Modify the modules page

It now shows unset for unset device settings.
Also, `$os_module_status = $config['os'][$device['os']]['poller_modules'][$module];` doesn't work like you would expect. Fix that behavior.

* Fix mangled tabs

* optimize debug output
add docs

* text highlighting

* Streamline docs #1
* Update docs
* Spell out Global, OS, Device.
2016-11-13 13:46:05 -06:00
499b05f0f5 fix: Do not create rrd folder when -r is specified for poller (#4812) 2016-10-16 21:45:39 -05:00
009281773f Updated poll_device and os module to prettify output (#4740)
* Updated poll_device and os module to prettify output

* Move line return
2016-10-13 20:41:53 -05:00
b867d3dd05 fix: apc load, runtime and current sensors (#4780)
fix: APC load, runtime and current sensors
2016-10-13 19:03:46 +03:00
6c324cd03e refactor: Improve sensors polling for performance increase (#4725)
refactor: Improve sensors polling for performance increase
2016-10-11 19:34:09 +03:00
edbb6ae0e3 refactor: Centralize MIB include directory specification (#4603)
* refactor: Centralize MIB include directory specification
The default is now:
```
$config['mib_dir'].'/mibdirname:'.$config['mib_dir']
```
This means we exclude OS mibs and only use ours  (we could prepend `+` if we want to include os mibs.
All snmp calls should only include the name of the subdirectory under the mibs directory.

* Remove d_echo from Proc
Fix snmpsim tests.
2016-09-28 14:19:28 +01:00
8dbc9b4809 Update functions.inc.php 2016-09-19 11:09:29 -04:00
16a47ac5e9 fix: Use isset for checking poller option (#4291) 2016-08-31 09:23:35 -05:00
9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
10d7451a74 Hytera repeater support (#4163) 2016-08-23 19:44:45 +01:00
cfe6d39250 Merge pull request #3991 from vitalisator/pbn2
move pbn mibs to subdirectory
2016-08-10 19:22:45 +01:00
e09f5c552c Merge pull request #3800 from murrant/rrd-create-remote
RRD Cleanup: centralize rrd_exists check, utilize data_update() and rrd_name()
2016-08-10 18:44:45 +01:00
97877e38ec Remove the var_dump of the poller stats update array
It doesn't add any useful info and takes up several lines
2016-08-09 14:06:01 -05:00
850c4a2f92 move pbn mibs to subdirectory 2016-08-07 11:40:37 +02:00
97daf3dd54 Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-01 10:18:28 -05:00
laf
d722bb6943 Update use of max repeaters to save mysql queries 2016-07-30 15:11:29 +01:00
1f5cfe283e Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-07-18 15:58:56 -05:00
laf
33415796bd Re-enable the ability to run a disabled module manually 2016-07-11 12:28:54 +01:00
01cfb960d1 Fix sensors rrd name issue
Use last instead of first, as last won't flush rrdcached
Only stream_select if timeout > 0
Attempt to fix mysql
2016-07-08 22:58:36 -05:00
c5c5469179 Fix rrdtool_check_rrd_exists() 2016-07-08 14:35:00 -05:00
57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
laf
9602f8467a Fixed bug in poller time response 2016-06-26 14:38:33 +01:00
laf
6ba32ebe5c Fix for polling/discovery function issue 2016-06-24 15:32:19 +01:00
laf
5d16cdb20a Fixed errors from scrut/murrant 2016-06-22 19:10:33 +01:00
laf
246664d1f9 Updated module run time to be limited to 5 decimal places 2016-06-21 01:44:50 +01:00
laf
a194009917 Pretty up the polling process output 2016-06-21 01:41:45 +01:00
0da39d9f7b Updated includes/polling/functions.inc.php to include full path file
Updated includes/polling/functions.inc.php to include full path file will fix weathermap
2016-06-07 12:30:44 +01:00
009840bf8a Store device group relationships in a pivot table. 2016-06-02 13:25:01 -05:00
7664464dd9 Don't alert unless the sensor value actually surpasses the threshold.
Use >/< instead of >=/<=
2016-05-06 10:46:54 -05:00
46a0bbfc82 Add PoE state to Netonix devices
Allow for non-numeric states.  state_descr must match what is returned by the device.
2016-04-23 20:56:21 -05:00
985e1a4402 Split Cambium/Canopy Detection and Polling 2016-03-24 10:34:56 -04:00
a13d148fb1 Added Signal Sensor 2016-03-22 10:37:07 -04:00
72b9fd4d38 Added Cambium Support 2016-03-22 09:32:26 -04:00
73149f3f19 More updates
Add sensor_prev to be able to alert on state change

Add docs
2016-02-27 15:29:11 +01:00
laf
4f3aceef5a Added reason why device goes up/down to eventlog 2016-02-20 16:09:37 +00:00
laf
8c53a94233 Removed old alerting dbInsert code 2016-02-11 22:27:36 +00:00
e3ec42c06d Deal with 0 value for sensor data better.
Issue #2883
2016-02-09 14:20:36 -06:00