Commit Graph

59 Commits

Author SHA1 Message Date
Jellyfrog
20b4215204
Swich links to https (#12511)
* Switch librenms links to https

* Convert librenms links in comments

* Switch gnu.org url to https

* switch php urls to https
2021-02-09 00:29:04 +01:00
Jellyfrog
77c531527c
Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +02:00
Tony Murray
9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
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
9e85f24b00 fix: Make irc bot to use authentication module for user info (#4372) 2016-09-12 11:24:22 -05:00
Tony Murray
aadd627863 Move IRCBot class to LibreNMS namespace. (#4246)
refactor: Moved IRCBot class to LibreNMS namespace #4246
2016-08-28 21:53:52 +01:00
deutor
79b8df4ef6 Merge pull request #1 from deutor/patch-1
Patch 1 - testing merge
2016-08-26 08:21:30 +02:00
deutor
12c45d1106 Update irc.php 2016-08-25 14:06:53 +02:00
deutor
c72b39cbf4 IRC bot - allow to disable ssl check
In PHP 5.6.x stream wrappers verify peer certificates and host names by default when using SSL. That fix allows to turn off that verification with config option $config['irc_disable_ssl_check'] = true; 
It is useful when you want to use self generated certificate for your own IRC server.
2016-08-25 13:58:32 +02:00
deutor
7547f4905c Update irc.php 2016-08-25 11:48:20 +02:00
deutor
55a962e02f Update irc.php 2016-08-25 11:44:04 +02:00
deutor
7c9a176d63 Update irc.php 2016-08-25 11:42:05 +02:00
deutor
f69954e29f Update irc.php 2016-08-25 11:38:32 +02:00
deutor
a685b5af7a IRC bot - detect lost communication
Force reconnect if no data received from server for config['irc_conn_timeout'] seconds (that may happen when network/VPN goes down - in such case IRC bot won't get immediately notification that connection was lost, at least till it tries to send anything).
2016-08-25 11:34:54 +02:00
Daniel Preussker
ec12273aa7 check for no motd line (#4200)
Fixes #4199
2016-08-25 09:02:10 +01:00
Tony Murray
b98ba8c1a4 Remove some deprecated functions 2016-04-24 01:05:14 -05:00
Mike Rostermund
acc76dbfba Use bits instead of octets for proper bps values when using ircbot's .port cmd 2016-01-20 02:00:37 +01:00
Mike Rostermund
8f34e0e30e Fix SQL statement for .port command in irc bot 2016-01-20 01:58:10 +01:00
Juho Vanhanen
9ca61ffe90 Fixed irc bot reconnect if socket dies 2015-10-06 01:24:44 +03:00
Juho Vanhanen
0901c795f3 Added colors to alerts sent to IRC 2015-10-05 16:26:27 +03:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
f0o
8c670f1d9e
Fix type fatal on reload 2015-06-09 14:00:16 +00:00
f0o
adebcf6c29 Fallback to shell_exec as some systems lack posix_mkfifo 2015-03-15 15:14:10 +00:00
f0o
e4b5b48f61 Added posix-fifo to deliver alerts to the IRC-bot 2015-03-15 13:00:25 +00:00
f0o
38b929942c Updated irc.php
Added Alert-Channels to irc.php
2015-01-31 17:25:18 +00:00
f0o
aeccdbb942 Cleanup for Scrutinizer 2014-12-15 14:33:31 +00:00
f0o
c0e1d9cbc5 Added Alerting 2014-12-15 11:10:26 +00:00
Paul Gear
a2b377c519 Fix database link for IRC 2014-03-14 09:57:29 +10:00
f0o
b713ec3113 Make use of $observium_link 2014-03-08 22:42:03 +01:00
f0o
34f2196d1a New and Awesome IRC-Bot! 2014-03-07 22:33:00 +01: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 774233327e.
2013-10-28 12:01:36 -07:00
Tyler Christiansen
774233327e update copyright notice 2013-10-28 01:46:59 -07: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
Adam Amstrong
0376427943 more memcached
git-svn-id: http://www.observium.org/svn/observer/trunk@3114 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-02 15:06:12 +00:00
Tom Laermans
6b210ea056 change directory to observium root, now also for other commandline tools
git-svn-id: http://www.observium.org/svn/observer/trunk@2990 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-08 10:44:41 +00:00
Tom Laermans
a4d35fed50 remove warning about port info
git-svn-id: http://www.observium.org/svn/observer/trunk@2972 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 15:00:23 +00:00
Tom Laermans
a7053bf769 fix irc port function, patch by RobJE
git-svn-id: http://www.observium.org/svn/observer/trunk@2971 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 14:52:42 +00:00
Tom Laermans
ed6ffa6067 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2964 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-05 16:17:41 +00:00
Adam Amstrong
bafb299bb0 ircbot fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@2749 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-01 20:58:48 +00:00
Tom Laermans
f87ed09e1b more code cleanup
git-svn-id: http://www.observium.org/svn/observer/trunk@2519 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 14:34:27 +00:00
Tom Laermans
d864ce234f kill a whole bunch of trailing spaces
git-svn-id: http://www.observium.org/svn/observer/trunk@2516 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 09:55:11 +00:00
Adam Amstrong
b167c37138 thing from sysa
git-svn-id: http://www.observium.org/svn/observer/trunk@2321 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-15 14:11:34 +00:00
Adam Amstrong
7e16919426 more db
git-svn-id: http://www.observium.org/svn/observer/trunk@2317 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-14 21:51:58 +00:00
Adam Amstrong
7d70797b75 IRC bot updates. We should make this mofo AWESOMES.
git-svn-id: http://www.observium.org/svn/observer/trunk@2133 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-21 15:27:41 +00:00
Tom Laermans
f55a30f744 some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00
Tom Laermans
459af33c43 cleanup of the socalled cleanup of irc.php
git-svn-id: http://www.observium.org/svn/observer/trunk@1959 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-23 09:14:33 +00:00
Tom Laermans
b37765989c irc.php fixes by falz
git-svn-id: http://www.observium.org/svn/observer/trunk@1958 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-23 09:13:16 +00:00
Geert Hauwaerts
6501cd29b5 - Code cleanup by Bastian Widmer.
git-svn-id: http://www.observium.org/svn/observer/trunk@1957 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-22 20:27:39 +00:00