Commit Graph

160 Commits

Author SHA1 Message Date
Tony Murray
b3f6218359 fix: os type and group not being set (#5357) 2017-01-09 08:16:09 +00:00
Neil Lathwood
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
Neil Lathwood
f5a16be0e3 refactor: Move OS definitions into yaml files (#5189) 2016-12-23 17:53:19 +00:00
David Bell
e67572cfb7 fix: Add check for differently named Cisco Power sensor (#5119) 2016-12-07 00:30:56 +00:00
Tony Murray
db240cb4eb refactor: Collection and output of db and snmp stats (#5049) 2016-11-23 06:57:19 +00:00
Tony Murray
9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
Tony Murray
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
Vitali Kari
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
Neil Lathwood
499b05f0f5 fix: Do not create rrd folder when -r is specified for poller (#4812) 2016-10-16 21:45:39 -05:00
Neil Lathwood
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
crcro
b867d3dd05 fix: apc load, runtime and current sensors (#4780)
fix: APC load, runtime and current sensors
2016-10-13 19:03:46 +03:00
Neil Lathwood
6c324cd03e refactor: Improve sensors polling for performance increase (#4725)
refactor: Improve sensors polling for performance increase
2016-10-11 19:34:09 +03:00
Tony Murray
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
boudreau
8dbc9b4809 Update functions.inc.php 2016-09-19 11:09:29 -04:00
Neil Lathwood
16a47ac5e9 fix: Use isset for checking poller option (#4291) 2016-08-31 09:23:35 -05:00
Tony Murray
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
zarya
10d7451a74 Hytera repeater support (#4163) 2016-08-23 19:44:45 +01:00
Neil Lathwood
cfe6d39250 Merge pull request #3991 from vitalisator/pbn2
move pbn mibs to subdirectory
2016-08-10 19:22:45 +01:00
Neil Lathwood
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
Tony Murray
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
vitalisator
850c4a2f92 move pbn mibs to subdirectory 2016-08-07 11:40:37 +02:00
Tony Murray
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
Tony Murray
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
Tony Murray
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
Tony Murray
c5c5469179 Fix rrdtool_check_rrd_exists() 2016-07-08 14:35:00 -05:00
Tony Murray
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
Neil Lathwood
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
Tony Murray
009840bf8a Store device group relationships in a pivot table. 2016-06-02 13:25:01 -05:00
Tony Murray
7664464dd9 Don't alert unless the sensor value actually surpasses the threshold.
Use >/< instead of >=/<=
2016-05-06 10:46:54 -05:00
Tony Murray
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
Paul Heinrichs
985e1a4402 Split Cambium/Canopy Detection and Polling 2016-03-24 10:34:56 -04:00
Paul Heinrichs
a13d148fb1 Added Signal Sensor 2016-03-22 10:37:07 -04:00
Paul Heinrichs
72b9fd4d38 Added Cambium Support 2016-03-22 09:32:26 -04:00
Rosiak
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
Tony Murray
e3ec42c06d Deal with 0 value for sensor data better.
Issue #2883
2016-02-09 14:20:36 -06:00
Paul Gear
99a76d4ea2 Update per-module poller performance collection
This makes the following changes:
- Record per-module performance data in the same measurement as overall poller-perf
- Add tags to distinguish modules
- Update rrd filenames
- Use stacked graph for poller modules
2016-01-26 20:20:42 +10:00
Mike Rostermund
006056a754 Store performance data for each poller module 2016-01-24 15:35:31 +01:00
Neil Lathwood
abf2fc0ba5 Merge pull request #2740 from paulgear/unified-data-storage-rrd-influx
First cut at unified data storage for rrdtool & influxdb
2016-01-21 23:31:09 +00:00
laf
49adff3895 Added the lookup of IP if device hostname is a hostname 2016-01-17 23:59:51 +00:00
Paul Gear
3831ad3f45 First cut at unified data storage for rrdtool & influxdb
As a side-effect, this adds InfluxDB support for MIB-based polling.
2016-01-15 21:49:57 +10:00
Paul Gear
d1d3dba97d Merge pull request #2637 from laf/snmp-perf
Moved system polling module to core to centralise some snmpget calls
2016-01-15 20:10:09 +10:00