Commit Graph

82 Commits

Author SHA1 Message Date
Tony Murray
ac23c133d9 Fix an agent bug if a process ran more than 999 days (#15411)
* Fix an agent bug if a process ran more than 999 days
Increase it to 274 years before that happens ;)
Fix a few other small bugs

* Update schema check file
2023-10-07 20:14:00 -05:00
Shao Yu-Lung (Allen)
741d93c2a5 feat: Agent support OS Updates (#14687) 2023-04-28 08:49:04 -05:00
Jellyfrog
68e0b3df28 Apply fixes from StyleCI (#14899)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-03-13 22:32:22 +01:00
Tony Murray
ae3925b09a Fix memcached unserialize vulnerability (#14459)
Allows code injection, so remove it entirely.
This requires a memcached application script to restore functionality.

https://github.com/librenms/librenms-agent/pull/428
2022-10-16 11:15:17 -05:00
Tony Murray
15fd7d0653 Handle null in unix-agent (#14358) 2022-09-16 15:44:41 +02:00
Tony Murray
c3f31c14e0 Handle connection timed out errors in unix agent (#14286)
* handle connection timed out errors in unix agent

* Update unix-agent.inc.php
2022-09-06 12:00:35 -05:00
Ambroise
c807e409d9 add the possibility to monitor redis application through the unix-agent (#14182) 2022-08-07 12:05:28 -05:00
Ambroise
0f37f68bfd Add possibility to monitor the php-fpm service with the unix agent and (#14173)
not only with SNMP agent

Co-authored-by: Ambroise Rosset <ambroise.rosset@unil.ch>
2022-08-03 08:31:06 -05:00
Tony Murray
f94f7f23b8 Fully convert core to a modern module (#13347)
* Core module WIP

* update OS::make()

* core WIP

* try to finish up

* switch all core do os Model

* Mock WIP

* Working tests

* cleanup

* phpstan fixes

* style fixes

* fix agent

* trim space too
and a couple of cleanups

* corrected ios test data

* missed space

* update test data

* put escapes back

* another net-snmp difference

* Fix class description

* revert snmp.inc.php change, that can be a different PR

* revert snmp.inc.php change, that can be a different PR
2021-10-19 15:43:43 -05:00
Kevin Wallace
e981570c34 enclose IPv6 literal in [brackets] for snmpget and unix-agent (#13130)
Co-authored-by: Kevin Wallace <kevinwallace@users.noreply.github.com>
2021-08-19 18:00:06 -05:00
Kevin Zink
6cb7fb4da7 Bugfix for no sockets on Unix Agents (#12637)
* Bugfix for no sockets on Unix Agents

Fix Bug: Argument #1 ($stream) must be of type resource, bool given...

* Update unix-agent.inc.php

Fix Style
2021-03-20 17:19:09 +01:00
Jellyfrog
29f45ca352 Apply fixes from StyleCI (#12124) 2020-09-21 15:59:34 +02:00
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