Page 2 of 2

Re: Fail XI monitoring wizard on CentOS 5.2.5

Posted: Tue Mar 08, 2016 3:53 pm
by bheden
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! :)

Re: Fail XI monitoring wizard on CentOS 5.2.5

Posted: Wed Mar 09, 2016 2:17 am
by ankit_bansal3
But its impacting our console, below is our wizard name.

"Dell_OpenManage_NagiosXI_monitoring_wizard"

Re: Fail XI monitoring wizard on CentOS 5.2.5

Posted: Wed Mar 09, 2016 10:15 am
by bheden
The fix that I supplied previously should fix that!