This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
bheden
Product Development Manager
Posts: 179 Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises
Post
by bheden » Tue Mar 08, 2016 3:53 pm
Welp, as it turns out, I was wrong. If the last portion of the array is not exactly 40 characters, then absolutely nothing happens. If you update that block of code to the following, it should resolve your issues:
Code: Select all
// Determine wizard directory/file name
$cdir = system("ls -1 ".$tmpdir."/");
$cname = $cdir;
if (strlen($cdir) > 40) {
$a = explode('-', $cdir);
if (strlen(end($a)) == 40) {
$i = count($a);
unset($a[$i-1]);
unset($a[$i-2]);
$cname = implode('-', $a);
}
}
Sorry about that!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
Nagios Enterprises
Senior Developer
ankit_bansal3
Posts: 20 Joined: Wed Mar 18, 2015 4:38 am
Post
by ankit_bansal3 » Wed Mar 09, 2016 2:17 am
But its impacting our console, below is our wizard name.
"Dell_OpenManage_NagiosXI_monitoring_wizard"
bheden
Product Development Manager
Posts: 179 Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises
Post
by bheden » Wed Mar 09, 2016 10:15 am
The fix that I supplied previously should fix that!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
Nagios Enterprises
Senior Developer