mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added local rss file + tidied up locations of notifications and callback
This commit is contained in:
@@ -101,7 +101,7 @@ if ($options['f'] === 'perf_times') {
|
||||
}
|
||||
|
||||
if ($options['f'] === 'callback') {
|
||||
include_once 'callback.php';
|
||||
include_once 'includes/callback.php';
|
||||
}
|
||||
|
||||
if ($options['f'] === 'device_perf') {
|
||||
@@ -113,7 +113,7 @@ if ($options['f'] === 'device_perf') {
|
||||
}
|
||||
|
||||
if ($options['f'] === 'notifications') {
|
||||
include_once 'notifications.php';
|
||||
include_once 'includes/notifications.php';
|
||||
}
|
||||
|
||||
if ($options['f'] === 'purgeusers') {
|
||||
|
||||
@@ -847,6 +847,7 @@ $config['availability-map-width'] = 25;
|
||||
|
||||
// Default notifications Feed
|
||||
$config['notifications']['LibreNMS'] = 'http://www.librenms.org/notifications.rss';
|
||||
$config['notifications']['local'] = 'misc/notifications.rss';
|
||||
|
||||
// Update channel (Can be 'master' or 'release')
|
||||
$config['update_channel'] = 'master';
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* @subpackage Notifications
|
||||
*/
|
||||
|
||||
require_once 'includes/defaults.inc.php';
|
||||
require_once 'config.php';
|
||||
require_once $config['install_dir'].'/includes/defaults.inc.php';
|
||||
require_once $config['install_dir'].'/config.php';
|
||||
require_once $config['install_dir'].'/includes/definitions.inc.php';
|
||||
require_once $config['install_dir'].'/includes/functions.php';
|
||||
|
||||
16
misc/notifications.rss
Normal file
16
misc/notifications.rss
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>LibreNMS Notifications</title>
|
||||
<description>RSS feed for notifications to LibreNMS users</description>
|
||||
<link>http://www.librenms.org/</link>
|
||||
<lastBuildDate>Tue, 19 Jan 2016 12:00:00 +0000</lastBuildDate>
|
||||
<pubDate>Tue, 19 Jan 2016 12:00:00 +0000</pubDate>
|
||||
<ttl>1800</ttl>
|
||||
<item>
|
||||
<title>Hello World!</title>
|
||||
<description>This is the first notification. We will post these whenever an upcoming major change is about to happen.</description>
|
||||
<pubDate>Tue, 19 Jan 2016 12:00:00 +0000</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user