179 Commits

Author SHA1 Message Date
Tony Murray
d2193f76ca feature: allow scripts to be run from any working directory (#4437)
* feature: allow validate.php to be run from any working directory

* remove redundant realpath() call

* re-add realpath() to remove symbolic links

* realpath() isn't needed...

* chdir() in all php scripts in ./ and ./scripts/

* update-sql.php clearly is not used, as it was broken.

* Change some scripts to executable
Remove extra chdir() call in snmp-scan.php

* Missed console-ui.php
Kind of fixed console-ui.php help output

* Re-add newline
2016-09-14 16:53:04 +01:00
Neil Lathwood
7dec670494 refactor: Updated a lot of references to LibreNMS - copyright still left intact (#4339) 2016-09-08 08:12:23 -05:00
Tony Murray
abc6a5b799 PSR-2 Final cleanup (#4247)
refactor: Final PSR2 cleanup
2016-08-28 23:32:55 +01:00
pblasquez
be9db5a19e Update discovery.php 2016-02-24 12:48:22 -08:00
laf
0558275414 Added verbose debugging, normal debugging will now try and mask certain information 2016-01-17 14:39:17 +00:00
Neil Lathwood
72cc180184 Merge pull request #2719 from SaaldjorMike/del-utime-func
Replaced custom utime() function with microtime(true)
2016-01-10 22:43:31 +00:00
Mike Rostermund
e2d1a8e7d9 Replaced custom utime() function with microtime(true) 2016-01-08 13:33:32 +01:00
laf
fdc0eca44d Centralised version info + used in output 2016-01-06 00:14:35 +00:00
Daniel Preussker
c7a55f86c6 Merge pull request #2093 from SaaldjorMike/remove-old-versioncheck
Removed old unused version checking
2015-10-09 18:04:13 +00:00
Sławomir Paszkiewicz
462b41c4f8 - applied changes made by f0o 2015-10-09 19:41:19 +02:00
Mike Rostermund
0d645d0349 Removed old unused version checking 2015-10-09 15:16:29 +02:00
Sławomir Paszkiewicz
457babd32d - poll devices with specified type with --type switch 2015-10-09 12:57:43 +02:00
Sławomir Paszkiewicz
ff89504a17 - poll devices with specified os with --os switch 2015-10-09 12:36:41 +02:00
Sławomir Paszkiewicz
c94340d060 - add option to (re)discovery only linux devices 2015-10-09 10:01:58 +02:00
f0o
da9e071d7d Revert all PHP-Based MySQL Locks introduced in #1584 2015-09-02 14:46:42 +01:00
f0o
26554221fb Add another safety-net to remove locks if the execution of poller/disco gets aborted or killed 2015-09-01 14:49:55 +01:00
f0o
e11f613bdd Pause polling and discovery if there's an update-lock 2015-09-01 14:14:50 +01:00
f0o
b0a302bf77 Release MySQL locks when they are not used anymore 2015-09-01 11:10:56 +01:00
Clint Armstrong
9039dbb425 give discovery it's own lock 2015-08-25 11:35:23 -04:00
Clint Armstrong
0588ff41c3 get a lock when doing discovery 2015-08-25 11:35:18 -04:00
laf
86059f67c1 updated to use function for last commit 2015-08-25 08:40:20 +00:00
laf
59de0d1478 Clean up some poller debug + added updated version and last git commit 2015-08-24 20:54:19 +00:00
Mark Schouten
4792879ce5 Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories... 2015-08-21 16:10:01 +02:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Louis Rossouw
9cf8bc0277 Fix poller group query in discovery.php. 2015-07-11 00:55:29 +02:00
Louis Rossouw
7f3f942e83 Adding the ability to use multiple poller groups for a poller. 2015-06-22 12:37:00 +02:00
laf
e1e7f36c81 Added support for poller groups in discovery 2015-03-19 22:14:08 +00:00
Paul Gear
0e3b24bebc Start on making date formats consistent 2014-08-07 03:45:30 +10:00
Paul Gear
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
Tyler Christiansen
63d428c0e1 Revert "update copyright notice" after discussion with Paul
This reverts commit 774233327e3b300011b7a6fdcbef3a375f34b8b8.
2013-10-28 12:01:36 -07:00
Tyler Christiansen
774233327e update copyright notice 2013-10-28 01:46:59 -07:00
Adam Amstrong
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
Adam Amstrong
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
Adam Amstrong
dbf212f652 phpDocumentator headers. retire static-config. IF YOU ARE READING THIS, REMOVE IT FROM THE BOTTOM YOUR CONFIG.PHP. YES. YOU.
git-svn-id: http://www.observium.org/svn/observer/trunk@3150 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-09 10:01:42 +00:00
Tom Laermans
571c9d5b0e optimize sql for versioncheck stats
git-svn-id: http://www.observium.org/svn/observer/trunk@3098 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-29 20:04:35 +00:00
Adam Amstrong
4715a48e16 fix if()
git-svn-id: http://www.observium.org/svn/observer/trunk@3046 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-17 15:38:09 +00:00
Tom Laermans
86a5e66358 automatically change directory to observium base, hopefully avoids the need of a cd /opt/observium in crontab and on commandline
git-svn-id: http://www.observium.org/svn/observer/trunk@2989 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-08 10:39:10 +00:00
Tom Laermans
e4a8e284c0 new system for sql updates -- PLEASE BACK UP YOUR DATABASE BEFORE UPGRADING (yes, it's upgrade-tested on different systems, but better safe than sorry)
git-svn-id: http://www.observium.org/svn/observer/trunk@2867 61d68cd4-352d-0410-923a-c4978735b2b8
2012-02-16 12:19:40 +00:00
Adam Amstrong
661480fb4c db update :)
git-svn-id: http://www.observium.org/svn/observer/trunk@2805 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-23 14:06:27 +00:00
Adam Amstrong
70f51cef04 fix previous commit :)
git-svn-id: http://www.observium.org/svn/observer/trunk@2759 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-06 22:26:47 +00:00
Adam Amstrong
a1e96f708f billing rewrite (disabling svn after)
git-svn-id: http://www.observium.org/svn/observer/trunk@2758 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-06 22:17:37 +00:00
Tom Laermans
a369c442eb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
Adam Amstrong
ae2f6b1941 add better debugging. version check quiet.
git-svn-id: http://www.observium.org/svn/observer/trunk@2472 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-15 22:35:22 +00:00
Adam Amstrong
edaa3d0afe don't check update if we're running -h new (don't kill the web server plx)
git-svn-id: http://www.observium.org/svn/observer/trunk@2471 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-15 21:20:54 +00:00
Adam Amstrong
c50de1713d genericify move thing sto the correct places
git-svn-id: http://www.observium.org/svn/observer/trunk@2466 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-15 15:03:42 +00:00
Tom Laermans
22753de0a3 remove debug print
git-svn-id: http://www.observium.org/svn/observer/trunk@2461 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-15 13:46:23 +00:00
Adam Amstrong
fb5d8b398f new funky discovery stuff (autodiscovery works now for discovery protocols)
git-svn-id: http://www.observium.org/svn/observer/trunk@2460 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-14 17:26:59 +00:00
Adam Amstrong
52ebbeab79 add symbol ap support (thanks to David Magniez)
git-svn-id: http://www.observium.org/svn/observer/trunk@2431 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-08 13:36:32 +00:00
Adam Amstrong
90dfbfa141 fix some things
git-svn-id: http://www.observium.org/svn/observer/trunk@2351 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-20 14:27:53 +00:00
Adam Amstrong
2522421528 replace mysql_ with db* (update with caution, it works for me but...)
git-svn-id: http://www.observium.org/svn/observer/trunk@2282 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-12 17:59:00 +00:00