Commit Graph

4597 Commits

Author SHA1 Message Date
Neil Lathwood
bbc7d71cf9 some small updates (#6022) 2017-02-27 14:39:02 +00:00
FTBZ
e0bfad015e fix: Adding state sensor support for Synology DSM (#5991)
* Adding state sensor support for Synology DSM

* Removing UPS MIB file

* Removing spaces and returns

* Adding spaces...

* removing blank line

* Removing unnecessary cache_multi
2017-02-25 11:52:45 +00:00
Thom Seddon
ecd467fee7 fix: hardware detection for Sub10 2.1.7 hardware (#5985) 2017-02-25 11:38:00 +00:00
Søren Rosiak
0ec02360d9 feature: Add Eaton UPS Charge Sensor (#6001) 2017-02-25 11:19:23 +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
dde32667f0 removed default values for rrd step + heartbeat, rely on db (#5997) 2017-02-24 18:40:16 +00:00
VVelox
6cf5add528 feature: add fail2ban application support (#5924)
* add single pool based poller for php-fpm

* add the page for php-fpm

* add graph for php-fpm

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* use named OID as suggest by @laf

* document PHP-FPM monitoring

* link it in the index

* clean up the named oid

* add how to grab the script in question

* add f2b poller

* add f2b app page

* add f2b graph

* add fail2ban notes

* minor formatting cleanup

* ...more formatting cleanup

* rename it so it can be called via the app page

* Revert "rename it so it can be called via the app page"

This reverts commit 0bde88a038.

* *rename it so it can be called via the apps page
*setup the apps page to call it

* renamed the graph

* now include fail2ban in the apps properly

* correct the wget command so it does not stomp on phpfpm-sp

* update the fail2ban poller for the newest fail2ban script and now build multiple RRDs

* update for now graphing firewalled and banned

* update fail2ban docs to match the newest snmpd extend method

* search automatically for jails and graph them

* graphs the currently banned for a fail2ban jail

* change the tital of the graph for the total banned to make it more descriptive

* Add a explanation of the two variables in the total graph.

* misc. white space cleans ups

* misc. white space cleanup

* minor white space cleanup

* correct descr lenght

* correct descr lenght

* Update fail2ban.inc.php

* Use rrd_name properly

* note the cache file bits

* make caching optional and note why

* Update to new RrdDefinition class

* And the use statement ;/

* Messed the second rrd_def

* correct two minor errors that did not seem to be causing issues

* don't use $vars as per pull #5994

* don't use $vars as per pull #5994

* fix jails graphs

* Remove loops and temp variables

* whitespace

* Change graph so we don't get fractions
2017-02-24 11:50:33 -06:00
barryodonovan
0f663b3a82 feature: Add Smseagle transport support (#5989)
* added alert transport for SMSEagle hardware gateway (smseagle.eu)

* added newline

* schema file update + small code refactor

* added docs
2017-02-24 11:55:53 +00:00
Tony Murray
20ae9e2ecd webui: Improve device header layout (#5990)
* webui: Improve device header layout

* Update css style version to break caches
Remove unused css.
2017-02-24 09:59:30 +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
171e8da4bf fix: Remove sensors_to_state_indexes data before carrying on with generic data removal for delete_device() (#5982) 2017-02-23 23:03:07 +00:00
David Bell
3e01de724f newdevice: Add CPU and memory for Entera devices #5974
* Add CPU and memory for Entera devices

* Renaming file for consistency

* split -> explode

* Added graphs to overview page, changed oid used for CPU, and added storage

* Remove uneeded code

* Fixed storage
2017-02-23 23:01:56 +00:00
David Bell
3512b19e2b feature: Update LLDP discovery to use IP address if discovery_by_ip is enabled #5872
* Update LLDP discovery to use IP address if discovery_by_ip is enabled

* Update as per laf's suggetions

* Fix indentation

* Updated with Laf's suggestion

* Add more debugging

* Trim MAC address

* Remove debug statements
2017-02-23 22:47:58 +00:00
Neil Lathwood
92433f3511 feature: Added snmp_check() to decide if a device is up/down for snmp #5946 (#5948)
* feature: Added snmp_check() to decide if a device is up/down for snmp #5946

* added missing line

* Update snmp.inc.php
2017-02-23 22:47:18 +00: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
FTBZ
0997172b37 refactor: Remove the specific services files with the same content as the main services.inc.php (#5934) 2017-02-22 23:53:47 +00:00
gilrim
1c9cbc42f5 api: Add ability to return all device info for get_devices_by_group() (#5971)
* Changed GetDevicesFromGroup to output all columns if  is defined in url
2017-02-22 09:37:40 +00:00
Tony Murray
8d528124a9 fix: addhost.php throw proper exception when database add fails (#5972)
* fix: addhost.php throw proper exception when database add fails
createHost() now throws an exception when adding to the database fails with a hint to run ./validate.php
Add phpdocs to createHost()
2017-02-22 09:12:31 +00:00
Florian Beer
2f924cb47b fix: syslog, pull out pam program source (#5942)
* Clean up syslog integration

* Fix syslog test

* Fix some more tests I missed earlier
2017-02-21 08:40:16 -06:00
David Bell
29d19c6be7 Update SEOS processor OID (#5967) 2017-02-21 14:05:32 +00:00
Thom Seddon
ca2662fead fix: Load wifi module for sub10 OS (#5963) 2017-02-21 11:37:57 +00:00
David Bell
847587244f newdevice: Added SEOS CPU discovery #5917 2017-02-20 23:54:07 +00:00
Neil Lathwood
9f3ac03233 newdevice: Added support for Linksys Smart Switch devices #5754 (#5921)
* newdevice: Added support for Linksys Smart Switch devices #5754

* Update linksys.svg
2017-02-17 22:12:00 -06:00
Neil Lathwood
13e6409571 newdevice: Added further detection for CiscoSB (ex Linksys) devices (#5922) 2017-02-17 17:56:25 -06:00
Florian Beer
7692d890f1 feature: Add additional service checks (#5941) 2017-02-17 23:08:39 +00:00
Michał Margula
c6f6cf1f09 Update apache.inc.php (#5938)
Same situation as with pull request https://github.com/librenms/librenms/pull/5919 . snmpget returns multiline output inside quotes (first and last line have quotes).
2017-02-17 22:18:02 +00:00
Michał Margula
07c9535c37 Update exim-stats.inc.php (#5919)
* Update exim-stats.inc.php

Output from debug of poller.php:

SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro udp:HOSTNAME:161 .1.3.6.1.4.1.8072.1.3.2.3.1.2.10.101.120.105.109.45.115.116.97.116.115]
"0
0"

 exim-statsRRD[update /opt/librenms/rrd/monitoring2/app-exim-stats-5.rrd N:0:0]

So we have two resulting variables from that outpu (note additional quotes there)
$frozen = '"0';
$queue = '0"';

And it fails. My graphs contain nan instead of real values. I think same issue is with apache application.

* Update exim-stats.inc.php

Updated to remove quote from string and then convert it to integer.
2017-02-17 21:31:38 +00:00
Neil Lathwood
1140be1a01 newdevice: Updated ibmnos support for Lenovo branded devices #5894 (#5920) 2017-02-17 14:44:04 +00:00
Neil Lathwood
ced759105e fix: Updated qnap sensor code to be more generic #5910 (#5925)
* fix: Updated qnap sensor code to be more generic #5910

* small change to check for valid data

* small code change
2017-02-17 14:43:30 +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
VVelox
872eac10aa feature: add PHP-FPM support for snmpd (#5912)
* add single pool based poller for php-fpm

* add the page for php-fpm

* add graph for php-fpm

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* use named OID as suggest by @laf

* document PHP-FPM monitoring

* link it in the index

* clean up the named oid

* add how to grab the script in question
2017-02-16 15:10:42 +00:00
Tony Murray
0b7b24fd9d Add tests for functions (#5915)
cast isHexString to bool
2017-02-16 08:15:20 +00:00
FTBZ
44c3f1f00c newdevice: Basic support for HPE MSA storage (#5907)
* Basic support for HPE MSA

* Basic support for HPE MSA

* Padawan needs to follow master Murrant to become a Jedi.

* Trying to correct snmpsim
2017-02-16 08:14:28 +00:00
Tony Murray
24aaf17f56 powerconnect detection for M8024-k (#5911)
fixes: 5905
2017-02-15 17:43:42 +00:00
Neil Lathwood
e7c46b0fe9 newdevice: Additional TPLink JetStream support (#5908) 2017-02-15 11:35:55 -06: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
mobilemaclin
49b5844346 newdevice: Added support for more Mellanox infiniband switches (#5887)
* Update mellanox.yaml

* Update AUTHORS.md

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Create mellanox-i5035.snmprec

* Update OSDiscoveryTest.php
2017-02-15 00:06:00 +00:00
Neil Lathwood
cc51a68f85 feature: Optional partial port polling (#5805)
* feature: Added ability to switch port polling mode

* update, speed things up slightly by walking certain tables

* more fixes

* updates

* updates

* update to exclude ports that are down

* wrong variable used

* update to set previous port status when null

* small update to port disco
2017-02-14 17:26:07 -06:00
Tony Murray
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
Neil Lathwood
b4da5de452 refactor: Centralised the updating of device logo #5873 (#5874) 2017-02-14 12:56:16 +00:00
Neil Lathwood
1e2ab73239 tidy up some more eventlog things (#5885)
* tidy up some more eventlog things

* update sql file
2017-02-14 12:06:01 +00:00
barryodonovan
4176379ae3 newdevice: Epmp utilization calculation and graphing for Cambium devices 2017-02-14 11:47:50 +00:00
Neil Lathwood
c5c560328b fix toner dbUpdate call (#5889) 2017-02-14 11:44:16 +00:00
Richard Mayhew
d6495dcac9 newdevice: Added more Linux Server hardware detection (#5866)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* Added hardware information through snmp extend

* formatting

* Added some documentation in the examples

* changes

* formatting

* removed the mib reference
2017-02-14 08:51:46 +00:00
NK74
f03d8b0a30 newdevice: Improve detection for Zyxel Zywall USG60 #5857
* Update zywall.yaml

Improve detection for Zyxel Zywall USG60 and graph hover

* added tests + changed disco
2017-02-13 23:53:00 +00:00
Richard Mayhew
e4f48e661e Add additional eventlog severity levels (#5879) 2017-02-13 22:32:02 +00:00
barryodonovan
4ef0a2d719 newdevice: Canopy frame utilization and updated MIBs (#5858) 2017-02-13 14:25:15 +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
Tony Murray
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
Neil Lathwood
3944185379 update tripplite divisor for certain versions #5364 (#5794) 2017-02-10 18:38:51 -06:00