Commit Graph

477 Commits

Author SHA1 Message Date
0b7b24fd9d Add tests for functions (#5915)
cast isHexString to bool
2017-02-16 08:15:20 +00:00
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
ebb1516db1 Icon was updated to an empty variable because it was not set on the $device array() (#5893) 2017-02-14 23:04:55 +00:00
b4da5de452 refactor: Centralised the updating of device logo #5873 (#5874) 2017-02-14 12:56:16 +00:00
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
a75ec7ab31 refactor: small function cleanups (#5865)
found while working on my snmp refactor
mac_clean_to_readable is about 33% improvement
hex2str is a moderate improvement
2017-02-12 13:20:06 +00:00
aab1cdac49 Throw error when host already exists rather than say it is due to snmp (#5789) 2017-02-06 08:16:00 -06:00
03f09118c1 refactor: move hp jetdirect discovery to yaml (#5757) 2017-02-04 10:02:05 +00:00
7dc52654db fix: Ignore ports where we only have two entries in the array, this signals bad data #1366 (#5722)
* update to check for valid ports

* fix: Ignore ports where we only have two entries in the array, this signals bad data #1366

* Update functions.php
2017-02-03 19:49:40 +00:00
a19b2614dc fix: added some timeout safeguards for curl calls (#5743) 2017-02-03 08:12:42 -06:00
ba2f88ee72 Possible fix for #5318, if delete_device called in webui then continue to run (#5703)
* Possible fix for #5318, if delete_device called in webui then continue to run

* derp
2017-02-01 20:17:35 +00:00
4390347508 fix: Ignore toners with values -2 which is unknown #5637 (#5654) 2017-01-31 08:07:50 +00:00
f6fc5fdf71 webui: new generic os SVG icon (#5645) 2017-01-28 10:13:55 +00:00
86445befde quick tidy up of dnslookup function #5633 (#5639) 2017-01-28 00:02:39 +00:00
d464916136 fix code (#5586) 2017-01-24 23:36:33 +00:00
da2c6c5d3c feature: support large vendor logos (#5573)
These are often wider than icons, with a fallback to icons if the logo is not present
Logos are stored in /html/images/logos
SVG is preferred for HiDPI
2017-01-24 22:16:01 +00:00
ab03af889a fix: hostnames returned by discovery protocols with trailing dot (#5571) 2017-01-24 21:56:51 +00:00
20dbda0829 Update os icon the handling. Add title to the os image (#5424) 2017-01-14 22:14:33 +00:00
d5296319fb refactor: MySQL strict and query fixes (#5338)
* refactor: MySQL strict and query fixes

* moved sql file
2017-01-13 06:47:16 -06:00
78cdca0222 refactor: yaml discovery code (#5408) 2017-01-12 17:01:34 +00:00
8156fd547f refactor: move include based discovery after yaml discovery (#5401) 2017-01-11 22:22:16 +00:00
f98829ba9d fix: Added support for autotls in mail transport #5314 2017-01-10 10:03:47 +00:00
5ad8fd3c0c feature: Add support for SVG images (#5275)
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* feature: Add support for SVG images

* docs: Add instructions for adding OS images

* Replace PNG os images by SVG
2017-01-08 13:32:17 -06:00
da5783d917 feature: Add mysql failed query logging + fixed queries that break ONLY_FULL_GROUP_BY (#5327)
* feature: Add mysql failed query logging + fixed queries that break ONLY_FULL_GROUP_BY

* fix all schema errors and update system
2017-01-07 11:32:38 -06:00
61094f0466 fix: Do not use generic icon by default (#5303) 2017-01-04 08:05:32 +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
11345e1c73 changed truee to true! (#5266) 2016-12-30 00:13:12 +00:00
9fef312a20 fix: better Cisco hardware formatting (#5184) 2016-12-16 23:04:37 +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
0955d0271e webui: Allow admin users to modify hostnames in web UI #3445 2016-11-13 00:19:22 +00:00
laf
46d2f578e7 added central function and updated 2016-10-18 03:06:03 +00:00
74f89978fc refactor: toner support (#4795) 2016-10-15 00:14:18 +01:00
d5ba013a8a refactor: Updated and added more options for http proxy support (#4718) 2016-10-13 20:07:07 -05:00
56eec48db2 fix: skip ip_exists function when we force add (#4738) 2016-10-13 22:21:02 +01:00
7ca80410d5 feature: Add q-bridge-mib tagged VLAN membership #3285 2016-10-11 22:29:06 +01:00
a2563c5b67 feature: Added Cisco Integrated Management Console inventory and sensor support #4454 2016-10-06 01:40:37 +01:00
c31b3c0301 feature: use snmpsim for testing
fallback feature so we don't have to run snmpsim on devel computers, should be adequate for now
./scripts/pre-commit.php -u -snmpsim will start an snmpsimd.py process automatically
2016-09-23 14:57:31 -05:00
ed48e8f0c8 fix: Force add now ignores all snmp queries 2016-09-16 09:40:00 +01:00
7f7e3d22bc Fix: NIOS detection #4420 2016-09-13 22:16:02 +01:00
7dec670494 refactor: Updated a lot of references to LibreNMS - copyright still left intact (#4339) 2016-09-08 08:12:23 -05:00
f00c383d60 fix: Stop irc bot crashing on .reload #4353
* Removed duplicate include

* Move set_debug into functions.php, and restore the (re)loading of includes/defaults

* Move debug call until after function has been included
2016-09-07 18:42:49 +01:00
f6134f429c refactor: OS Discovery cleanup (Part 1) (#4335)
* refactor: OS Discovery cleanup (Part 1)
Convert linux.inc.php to use new string functions
Create OS discovery tests
Use glob instead of readdir in os discovery (could change discovery order)
Stop discovering once $os is set

* Remove duplicate file header.
2016-09-06 11:43:04 +01:00
d62f2f9d08 Update support for avaya-vsp and fix problem in functions.php for avaya-vsp (#4237)
newdevice: Improved support for Avaya VSP #4237
2016-08-29 20:00:05 +01: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
7b93b564da Centralize class loader (#4169)
Move the classloader to as early as possible in defaults.inc.php
This should cover all application entrances.
Set install_dir based on the location of defaults.inc.php
2016-08-22 23:59:59 +01:00
e80a385b7f RRDtool dual process (remote creation/check) (#4104)
* Prepare for dual rrdtool processes
Disabled at this time
Split out rrdtool version checks into rrdtool_create_command()
Tests for rrdtool_create_command()
Fixes a few small issues.

* Enable dual process and remote rrd check/creation

* remove full path for remote commands

* Doc updates
minor fix to rrdtool_tune()

* Set up bootstrap for phpunit
Fix issues with FileExistsException

* Attempt to fix phpunit

* Fix classloader and bootstrap to use full paths only (not depending on $config)

* Fix phpunit tests, config.php does not exist.
2016-08-22 16:32:05 +01:00
b8e9b2d917 Implement an autoloader (#4140)
* Implement an autoloader

When cleaning up classes for psr2, things got a bit unwieldy, so I implemented a class autoloader.
I created a PSR-0 compliant LibreNMS directory and moved all classes there that made sense.
Implemented LibreNMS\ClassLoader which supports adding manual class mappings

This reduces the file includes needed and only loads classes when needed.

* Add teh autoloader to graph.php

* Add a small bit of docs
Fix incomplete class in includes/discovery/functions.inc.php
2016-08-21 14:07:14 +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