Skip to content

Commit

Permalink
F5 Loadbalancers, use full path for includes (librenms#16519)
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvario authored Oct 10, 2024
1 parent 7f2ae97 commit 0fbaaf7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions includes/discovery/loadbalancers.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
*/

if ($device['os'] == 'f5') {
include 'includes/discovery/loadbalancers/f5-ltm.inc.php';
include 'includes/discovery/loadbalancers/f5-gtm.inc.php';
if (file_exists(Config::get('install_dir') . 'includes/discovery/loadbalancers/f5-ltm.inc.php')) {
include Config::get('install_dir') . 'includes/discovery/loadbalancers/f5-ltm.inc.php';
}
if (file_exists(Config::get('install_dir') . 'includes/discovery/loadbalancers/f5-gtm.inc.php')) {
include Config::get('install_dir') . 'includes/discovery/loadbalancers/f5-gtm.inc.php';
}
}

0 comments on commit 0fbaaf7

Please sign in to comment.