63 Commits

Author SHA1 Message Date
f3ba8947f7 Use Config helper (#10339)
remove usage of global variable
2019-06-23 00:29:12 -05:00
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
18fb90ad25 fix: Corrected variable for timeout messages in unix-agent.inc.php (#7246) 2017-08-29 10:00:09 -05:00
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
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
daf2cf7a24 app: Add GPSD application (#4754) 2016-10-08 21:25:50 +01:00
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
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
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
3d0edb46cc Add ntpd to the list of agentapps (#4194) 2016-08-25 18:43:56 -05:00
f55c7ea53c add the missing array value 2016-08-17 21:06:10 +02:00
2e23d14b98 Allow agent to enable apps in the $agentapps array 2016-06-08 21:42:18 -05:00
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
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
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
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
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
a4eb4391c5 Add Ceph support 2015-11-10 11:10:06 +01:00
laf
7b14aada4e Rebased 2015-10-26 11:08:19 +00:00
ba7bf5f60b Merge pull request #1715 from laf/rrdoptions
Updated rrdtool_update() to use new array format
2015-09-22 12:15:59 +00:00
bf913f5a3b Add initial support for Proxmox VM network traffic. [WIP] 2015-08-31 16:32:28 +02:00
55a2e0423d Remove all unneeded if($debug)-statements and replace them with d_echo 2015-08-21 16:10:00 +02:00
47c87cb7c6 Fix typos (Sorry about that)
Replace if($debug){..} with d_echo
2015-08-20 13:26:18 +02:00
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
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
650369603d Revise unix-agent (processes section) to use dbBulkInsert. 2015-07-17 06:08:03 +02:00
f261b7be95 Escape values passed to query. 2015-07-15 21:23:47 +02:00
605d92bc11 Processes get added to db in one big query instead of individual row inserts. 2015-07-15 21:21:58 +02:00
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
7cda1da63c Add config settings for unix-agent time-outs. 2015-06-21 22:14:32 +02:00
9f36182b7d Add timeout on unix agent execution after connect. 2015-06-21 19:36:44 +02:00
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
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
aa9dded019 Remove user-facing references to Observium
This eliminates nearly all of the user-facing references to Observium,
including in the names of temporary files and in the metadata of PDFs.  Many
of these may not be used any more, but I've adjusted them anyway.  These
changes should also make it easier to change the branding later if it is
needed.  There are a few references of which I still don't understand the
significance, so I've left them as-is for now.  The Unix agent in particular
is rather untidy.
2013-11-05 09:33:32 +10:00
b273e04241 /// -> //
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 12:24:34 +00:00
cacf913a55 # -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 11:29:53 +00:00
0dd451c9b6 fix non-snmp sensor polling
git-svn-id: http://www.observium.org/svn/observer/trunk@3220 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-21 10:15:00 +00:00
86348b92bb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3218 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-20 23:14:08 +00:00
f2be2f33d2 add agent sensor capacity, hddtemp script in agent-local as demo, possibly needs a little more work
git-svn-id: http://www.observium.org/svn/observer/trunk@3213 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-20 18:23:40 +00:00
e39ac789a8 make nginx script work via agent, patch by LinuxUser
git-svn-id: http://www.observium.org/svn/observer/trunk@3148 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-07 21:56:38 +00:00