Commit Graph

230 Commits

Author SHA1 Message Date
Neil Lathwood
98e8e7e407 fix: Compare existing device ip to host lookup like for like (#6316) 2017-04-01 22:17:32 +01:00
crcro
716441eeda fix: cisco 4948 device information 2017-03-21 09:11:42 -05:00
barryodonovan
d53f666221 ensure mib-name passed as parameter (#6135)
* ensure mib-name passed as parameter

* use str_contains instead of stristr
2017-03-11 08:42:57 -06:00
Neil Lathwood
66d1006d91 feature: Added app_state support for applications #5068 (#6061)
* feature: Added app_state support for applications #5068

* moved schema file 173 -> 174

* Re-arrange code

* added device_id to dbUpdate call

* updated function + missing apps

* Rename 174.sql to 176.sql

* Remove $device, it is unneeded when updating.  Rename update_applications() -> update_application()

* Some apps can return simply 0
2017-03-11 08:39:32 -06:00
barryodonovan
11e52b5e69 refactor: Mib poll def to seperate MIB name from RRD name (#6028)
* extended poll_mib_def() to take rrd_name as optional parameter

* removed tabs

* refactored to use
2017-03-01 19:35:48 +00:00
barryodonovan
853dd1e138 extended poll_mib_def() to take rrd_name as optional parameter (#5993)
* extended poll_mib_def() to take rrd_name as optional parameter

* removed tabs
2017-02-24 18:42:17 +00:00
Neil Lathwood
6a8318b7ec refactor: Updated storing of sensors data to be used in unix-agent #5904 (#5923)
* refactor: Updated storing of sensors data to be used in unix-agent #5904

* updated from scrut output

* another scrut update

* added missing dbUpdate

* small change

* small change
2017-02-23 19:25:05 -06:00
Neil Lathwood
fad5aca1b7 feature: Allow customisation of rrd step/heartbeat when creating new rrd files (#5947)
* feature: Allow customisation of rrd step/heartbeat when creating new rrd files

* revert defaults

* added docs + webui config option

* Move RrdDefinition to an Object to make them easier to create and remove the possibility of typos.

* Fix style/lint issues and missing use statements

* 3 more missing use statements

* updated doc + moved schema file
2017-02-23 22:45:50 +00:00
Robert Verspuy
8b2bc22272 Fixed a few small bugs, introduced by the Poller tidy up of laf (#5930)
* Fix for #5734 - incorrect hostname in the mouse-over of the services in the availability-map

* Fixed a few small bugs, introduced by the Poller tidy up of laf
2017-02-17 08:51:48 +00:00
Neil Lathwood
38168832a6 refactor: Centralise device up/down check and use in disco #5862 (#5897)
* refactor: Centralise device up/down check and use in disco #5862

* Remove extra indentation
2017-02-15 15:22:09 +00:00
Richard Mayhew
e4f48e661e Add additional eventlog severity levels (#5879) 2017-02-13 22:32:02 +00:00
Richard Mayhew
5bfd23e7eb webui: New eventlog severity classification (#5830)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* New event log severity model

* Fixed spaces vs tabs

* Learning the format requirements

* Learning the format requirements

* Moved the colours in to the stylesheet

* change SQL file to stop conflicting

* refactor log_event so severity isn't last, but reference is.

* keep having to move the file due to new PR conflicts

* Revert "keep having to move the file due to new PR conflicts"

This reverts commit f3030e7218.

* extended support to dashboard and eventlog page

* formatting
2017-02-12 22:41:05 +00:00
Neil Lathwood
55843eba74 fix sensors db update call (#5842) 2017-02-09 09:23:03 +00:00
Neil Lathwood
21898a3c29 Disco / Poller tidy up + Added display of module mem usage (#5778)
* tidyup + added mem usage for poller modules

* tidied up discovery modules

* fix sensors
2017-02-07 22:54:30 -06:00
Neil Lathwood
a19b2614dc fix: added some timeout safeguards for curl calls (#5743) 2017-02-03 08:12:42 -06:00
Richard Mayhew
76c91f8486 fixed sanitizing of google map information (#5738) 2017-02-03 09:26:04 +00:00
Richard Mayhew
08edfc60e0 Sanitize Location string (#5589) 2017-01-26 08:11:11 +00:00
Tony Murray
56bb0d2b97 fix: support hosts added by ipv6 without DNS #5567 2017-01-24 21:48:03 +00:00
Neil Lathwood
32da1bceea fix: Changing device type now is persistant (#5529) 2017-01-22 09:49:13 +00:00
Neil Lathwood
8557f2df41 newdevice: APC Environmental monitoring units #5140 2017-01-18 08:48:33 +00:00
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