Tony Murray
714d294222
fix: FreeBSD variants ( #4661 )
...
Restore them to one file, improve unit tests by adding FreeBSD to the string
2016-09-28 20:36:12 -05: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
Tony Murray
b41ce631a8
device: Edge Core ES3528M - base support
...
device: Edge Core ES3528M - base support
2016-09-27 14:54:39 -05:00
crcro
904e7a86a1
apc smart ups support ( #4622 )
2016-09-27 20:20:10 +01:00
Søren Rosiak
3a6c6985a3
newdevice: Added support for Cisco IPS ( #4561 )
...
* newdevice: Added support for Cisco IPS
* Add snmprec
* fix
2016-09-27 12:35:46 -05:00
Neil Lathwood
ef59d5110f
Rebased + added OS Tests
2016-09-27 18:05:42 +01:00
Tony Murray
4f90d389c6
Add test for HP-1800-8g procurve switch. ( #4629 )
2016-09-27 15:41:28 +01:00
kate66
3784f65abb
Added MGE Comet detection ( #4606 )
...
newdevice: Added MGE detection
2016-09-27 14:49:58 +01:00
Neil Lathwood
665864e604
Added actual sysDescr string from real device
2016-09-27 07:32:54 -05:00
crcro
8315e84164
ios-xe asr1000 test
2016-09-24 22:22:19 +03:00
crcro
5db36ef36c
@murrant indications
2016-09-24 20:32:00 +03:00
crcro
a798e56d6a
ios-xe detection
2016-09-24 19:20:30 +03:00
Tony Murray
882e9382f1
newdevice: Eaton PowerXpert
...
Just initial os detection for now.
Issue #4562
2016-09-23 16:32:09 -05:00
Tony Murray
1e67337d8e
Restore error settings.
2016-09-23 15:44:17 -05:00
Tony Murray
cab2597807
Remove some debug output.
...
Don't call terminate on null (it will be called automatically anyway)
2016-09-23 15:24:24 -05:00
Tony Murray
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
Florian Beer
3272b82958
newdevice: Add OS detection for macOS Sierra ( #4557 )
...
* Add OS detection for macOS Sierra
Darwin Kernel Version 16
* Add OS discovery test for macOS Sierra
2016-09-23 12:38:22 -05:00
Neil Lathwood
edbbc7fddd
fix: Fixed swos discovery
2016-09-21 22:17:51 +01:00
Neil Lathwood
b27d90162f
Split out all tests to OS names
2016-09-20 20:00:35 +01:00
Neil Lathwood
936b8b2e4a
Added more testing for Linux based devices
2016-09-20 19:25:37 +01:00
Neil Lathwood
15b48c4af3
rebased
2016-09-20 18:22:58 +01:00
Neil Lathwood
c16b6e6674
Merge pull request #4499 from murrant/fix-swos
...
fix: swos os discovery fixes #3593
2016-09-20 14:28:09 +01:00
Neil Lathwood
e2d4f43fbd
refactor: Added all os tests
2016-09-20 13:22:33 +01:00
Tony Murray
a7e9976f8f
fix: swos os discovery
2016-09-19 13:43:17 -05:00
Neil Lathwood
7ad946f85d
refactor: F5 device discovery cleanup + test unit
...
refactor: F5 device discovery cleanup + test unit
2016-09-19 16:10:20 +01:00
Neil Lathwood
6c07e4dc06
fix: vyos discovery fix #4486
...
fix: vyos discovery fix #4486
2016-09-19 16:09:02 +01:00
Tony Murray
aceb572065
refactor: F5 discovery cleanup
2016-09-19 08:46:19 -05:00
Tony Murray
12a428136d
fix: vyos discovery
...
add discovery tests for vyos, vyatta, and edgeos
2016-09-19 08:33:56 -05:00
Neil Lathwood
fa330cf333
Added Callmanager test
2016-09-18 19:11:10 +01:00
Neil Lathwood
a9a982b7db
Updated sharp printer discovery and test unit
2016-09-16 07:59:48 +01:00
Tony Murray
6d93dc0572
newdevice: Add support for APC Netbotz 200 ( #4443 )
...
Unfortunately, it is clobbered by other devices because it returns a value for all sorts of snmpget requests
2016-09-15 08:21:29 +01:00
Tony Murray
7f7e3d22bc
Fix: NIOS detection #4420
2016-09-13 22:16:02 +01:00
Neil Lathwood
a710c4a33c
newdevice: Added support for Axis network video encoder #4395 ( #4400 )
...
* newdevice: Added support for Axis network video encoder #4395
* Merge the preg_match
* Add Network Camera test
Couldn't find one for "Video Server"
2016-09-12 12:19:24 -05:00
Neil Lathwood
66bc0a7826
newdevice: Updated zxr10 device support #4380 ( #4381 )
...
* newdevice: Updated zxr10 device support #4380
* Space :(
2016-09-09 12:10:58 -05:00
Neil Lathwood
f76f0f7b96
newdevice: Added support for Eaton 5P units #3508 ( #4376 )
...
* newdevice: Added support for Eaton 5P units #3508
* Small fix
* Keep OSDiscoveryTest.php alphebetized
2016-09-09 11:57:05 -05:00
Tony Murray
1bff4f4a55
Update OSDiscoveryTest.php ( #4390 )
...
remove hostname
2016-09-09 10:22:35 -05:00
Tony Murray
b8cc59922e
fix: NIOS discovery ( #4389 )
...
* fix: NIOS discovery
Add nios test
* Add actual sysDescr string for nios
2016-09-09 15:57:40 +01:00
Neil Lathwood
5ea4d3154d
Small change from previous PR ( #4357 )
2016-09-06 11:58:22 +01:00
Tony Murray
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
Tony Murray
9b93fc5fd7
Combined case sensitive and insensitive functions
...
Added tests
2016-08-31 00:11:04 -05:00
Tony Murray
abc6a5b799
PSR-2 Final cleanup ( #4247 )
...
refactor: Final PSR2 cleanup
2016-08-28 23:32:55 +01:00
Tony Murray
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
Tony Murray
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
Tony Murray
65f929d1f2
Fix log entries with timestamps included and incorrect time (leading * or .)
...
Issue #3316
2016-04-12 00:05:16 -05:00
Tony Murray
81a626713a
Fix indentation.
2016-03-09 14:31:00 -06:00
Tony Murray
d59fc01b61
Another test case for the cisco syslog timestamp prefix.
2016-03-09 10:49:12 -06:00
Tony Murray
33c4cca8a4
Reduce memory cosumption for tests by running one assert at a time rather than building all the data then testing.
2016-03-09 09:07:00 -06:00
Tony Murray
bca965e2ae
Some devices have "logging timestamp" enabled, try to remove that from the start of the message.
...
Fixes #3199
2016-03-09 08:20:51 -06:00
Neil Lathwood
ab67f7870c
Merge pull request #3171 from Ultra2D/syslog-trim
...
Syslog trim whitespace
2016-03-05 11:26:09 +00:00
Ultra2D
f97f9c824b
Added syslog Procurve unit testing
2016-03-05 11:59:49 +01:00