Commit Graph

70 Commits

Author SHA1 Message Date
Jellyfrog
2fc3a21211 Apply fixes from StyleCI (#12121) 2020-09-21 15:43:38 +02:00
Tony Murray
941037e44e Convert OS discovery to new style (#12099)
* terra

* airos

* port cisco os polling
old wwan polling was broken and deprecated anyway

* enterasys

* Brother, a few changes

* AW Plus

* Fabos

* set expected test data

* 3com

* Adva FSP150

* advantech

* airos-af

* aix

* akcp

* allied

* allworx and missed mibs

* anyos

* fixup some zyxel shared stuffs
zywall graph polling

* aos

* apc

* apex

* apsoluteos

* fix copyrights

* arris

* arris

* aruba-instant

* ArubaOS

* Ascom

* asuswrt-merlin, ats

* audiocodes

* avocent

* avtech

* barracuda

* binox

* boss

* canonprinter

* cdata

* ceraos

* ciena-waveserver

* fix 3com

* fix airos

* fix brother yaml?

* fix aos more

* fix and improve apc

* fix arista test data

* yaml discovery (basic)

* cimc

* mib not used

* remove old discovery file

* ciscosat

* ciscosb fixes + improvements

* comware

* ctm

* cumulus

* cxr-ts

* cyberoam-utm

* cyberpower

* dahua-nvr

* dasan-nos

* datadomain

* dcn-software and fallback oids

* dd-wrt

* dell-laser

* d*

* e* and location

* forti, post processing, oid coalescing

* Freebsd array of sysDescr regex

* finish f*

* g*

* h*

* i* WIP

* i*

* Junos

* j*

* k*

* unix refactor previous to yaml more
inject $device

* fixes

* fixes

* l*

* m*

* n* ability to set other fields in regex
tnmsne polling to eloquent

* o*

* p*

* q* + bonus calix

* r*

* s* WIP

* s*

* t*

* u*

* v*
rework vrp to yaml (hybrid)

* w*

* x*

* z*

* a* easy no-data

* fixes

* style fixes

* missed ApexPlus

* fix signature

* Add missing location data

* rename getDevice functions

* add new cisco ftd data

* update docs

* revert sill snmp format

* fix snmp options

* update for new smartax test data

* rebase dsm

* fix voss
2020-09-18 15:12:07 +02:00
Tony Murray
020c5fd7e1 Remove legacy code and fix missing device graphs (#11950)
* removing $graphs global

* remove unused things

* fix some additional graphs

* Fix graphs persisting too soon

* correct name for poller module performance graph

* only one type of graph is used here
2020-07-23 09:57:22 -05:00
gardar
295647f56a Fix process details on newer versions of windows checkmk agent (#11840) 2020-06-26 18:41:29 +02:00
gardar
14193253fe Add support for windows librenms(check_mk) agent (#11691)
* Allow agent to run against windows os

* Display processes from windows check_mk agent

* Replace tabs with spaces

* Fix indent

* Add documentation for windows agent
2020-05-26 16:04:38 +02:00
Alexander Holzapfel
286b3dc338 fixed unix-agent polling bug where the called method can't be found (#11102) 2020-02-11 19:14:11 +01:00
SourceDoctor
7950893cd1 Alternate Poller IP instead of Hostname (#10981)
* optional alternative poller ip

* add missing schema update

* .

* enhance API Call 'add_device' with overwrite_ip key

* .

* .

* updating docs
2020-01-30 06:20:30 -06:00
Tony Murray
f3ba8947f7 Use Config helper (#10339)
remove usage of global variable
2019-06-23 00:29:12 -05:00
Tony Murray
a2e33efba8 Use PDO for MySQL queries (#8935)
Gut dbFacile
mres() now does nothing... could have some vulnerable queries, but most are ok

TODO
- [x] IRC client broke
- [x] Install broke

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-08-17 21:29:20 +01:00
Zmegolaz
18fb90ad25 fix: Corrected variable for timeout messages in unix-agent.inc.php (#7246) 2017-08-29 10:00:09 -05: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
Karl Shea
daf2cf7a24 app: Add GPSD application (#4754) 2016-10-08 21:25:50 +01:00
Daniel Preussker
20a3b555ab Fix Day counter in process CPU-time (#4653)
fix: Updates unix-agent handling of reported time values from check_mk #4652
2016-09-28 09:20:16 +01:00
crcro
de707a259f refactor: ntp apps (#4333)
* updated nicecase function for ntp server and client app

* ntp applications refactoring

* removed agent for ntp-server: reported as not working

* removed ntpd from agent polling. thx @murrant
2016-09-10 07:37:00 -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
Tony Murray
3d0edb46cc Add ntpd to the list of agentapps (#4194) 2016-08-25 18:43:56 -05:00
vitalisator
f55c7ea53c add the missing array value 2016-08-17 21:06:10 +02:00
Tony Murray
2e23d14b98 Allow agent to enable apps in the $agentapps array 2016-06-08 21:42:18 -05:00
Tony Murray
60624c1ac0 Rrdcached application monitoring
Can collect data from the agent or by connecting directly
2016-06-08 20:48:53 -05:00
laf
f90d69cef8 Added support + docs for FreeBSD 2016-04-21 14:38:21 +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
Mike Rostermund
e2d1a8e7d9 Replaced custom utime() function with microtime(true) 2016-01-08 13:33:32 +01:00
laf
0f33f6d1fa Rebased 2016-01-04 12:09:32 +00:00
Mark Schouten
91b1f28fb5 Allow the powerdns App to be set via the unix agent. Uses the agent in https://github.com/librenms/librenms-agent/pull/16 2015-11-23 14:12:46 +01:00
Mike Rostermund
fc85b71207 Merge pull request #2445 from laf/issue-2426
Added missing fields when inserting into applications table
2015-11-17 23:00:58 +01:00
laf
8660745b92 Added missing fields when inserting into applications table 2015-11-16 21:07:50 -08:00
laf
af8df3469c Added support for per device unix-agent port 2015-11-17 00:20:06 +00:00
Mark Schouten
a4eb4391c5 Add Ceph support 2015-11-10 11:10:06 +01:00
laf
7b14aada4e Rebased 2015-10-26 11:08:19 +00:00
Daniel Preussker
ba7bf5f60b Merge pull request #1715 from laf/rrdoptions
Updated rrdtool_update() to use new array format
2015-09-22 12:15:59 +00:00
Mark Schouten
bf913f5a3b Add initial support for Proxmox VM network traffic. [WIP] 2015-08-31 16:32:28 +02:00
Mark Schouten
55a2e0423d Remove all unneeded if($debug)-statements and replace them with d_echo 2015-08-21 16:10:00 +02:00
Mark Schouten
47c87cb7c6 Fix typos (Sorry about that)
Replace if($debug){..} with d_echo
2015-08-20 13:26:18 +02:00
Mark Schouten
30e47b382c Do not include the applications, but enable them in the database. The application poller will run them. Also, reduce code-duplication. 2015-08-20 12:36:37 +02:00
Mark Schouten
e2f5a1fdf0 Make app-recognition more efficient 2015-08-20 12:25:47 +02:00
laf
433562d351 More updates for influx 2015-08-19 20:58:02 +00:00
laf
987634e463 Updated rrdtool_update() to use new array format 2015-08-18 16:26:55 +00:00
Louis Rossouw
650369603d Revise unix-agent (processes section) to use dbBulkInsert. 2015-07-17 06:08:03 +02:00
Louis Rossouw
f261b7be95 Escape values passed to query. 2015-07-15 21:23:47 +02:00
Louis Rossouw
605d92bc11 Processes get added to db in one big query instead of individual row inserts. 2015-07-15 21:21:58 +02:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Louis Rossouw
7cda1da63c Add config settings for unix-agent time-outs. 2015-06-21 22:14:32 +02:00
Louis Rossouw
9f36182b7d Add timeout on unix agent execution after connect. 2015-06-21 19:36:44 +02:00
Alexander Sosna
5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
f0o
3be0b85846 Resolved upstream-conflicts:
html/pages/apps.inc.php
	includes/polling/unix-agent.inc.php
2015-01-18 06:37:22 +00:00
Neil Lathwood
e7c6951e7a Merge pull request #413 from f0o/issue-412
Added named/bind9 Application, Graphs, Check_MK-script
2015-01-17 22:05:16 +00:00
f0o
dd6f1f63ff Added TinyDNS (djbdns) Graphs & Application.
Data obtained by tinystats (http://www.morettoni.net/tinystats.en.html) via check_mk
2015-01-17 19:27:44 +00:00
f0o
e4a1ff5b7c Added named/bind9 Application, Graphs, Check_MK-script 2015-01-16 18:30:53 +00:00
f0o
42de11884e Added:
039.sql: create a new table processes
	processes.inc.php: show all processes from given device including sort-options

Changed:
	unix-agent.inc.php: insert all processes reported by check_mk_agent
	device.inc.php: added tab with link to process-list
2015-01-15 07:18:10 +00:00