Page 1 of 1
Can't add new Dashlet
Posted: Fri Apr 08, 2016 9:33 am
by Envera IT
I use the Text Dashlet Enhanced to display some information for the NOC on a dashboard. Every now and then I need to add new text to this dashlet which requires removing the old one and readding the dashlet. Whenever I'm done configuring the dashlet, and I submit it to be added to the Dashboard it says its been added but it never actually shows up on the dashboard itself. I've tried adding it to other dashboard, I've uninstalled the dashlet and reinstalled it. I then upgraded to XI 5.2.7 and the issue still persists even after a full reboot. I can add other dashlets, but not a new Text Dashlet. Got any tips for troubleshooting this?
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 9:44 am
by hsmith
Is anything showing up in the error logs?
Then try to add the dashlet.
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 9:53 am
by Envera IT
hsmith wrote:Is anything showing up in the error logs?
Then try to add the dashlet.
Tried adding the dashlet, I'm not seeing anything pop up in the httpd log when its added.
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 11:01 am
by hsmith
Are you using SSL? If so, try /var/log/httpd/ssl_error_log
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 11:32 am
by Envera IT
hsmith wrote:Are you using SSL? If so, try /var/log/httpd/ssl_error_log
crap my bad.
Seeing alot of the following.
line 1231 seems to reference line breaks.
Code: Select all
[Wed Apr 06 13:59:27 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-1-2_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1201, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:27 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-2-3_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1231, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:30 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-1-2_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1201, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:30 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-2-3_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1231, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:30 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-1-2_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1201, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:30 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-2-3_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1231, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:34 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-1-2_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1201, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:34 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-2-3_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1231, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:34 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-1-2_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1201, referer: https://nagios.redacted.$
[Wed Apr 06 13:59:34 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-2-3_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1231, referer: https://nagios.redacted.$
[Wed Apr 06 14:07:08 2016] [error] [client 10.0.3.201] PHP Notice: Undefined index: section-1-2_line_break in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1201, referer: https://nagios.redacted.$
Following is the deploy dashboard error. I am trying to deploy the Home dashboard which is referenced in line 158 of the following.
Code: Select all
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
[Wed Apr 06 14:10:51 2016] [error] [client 10.0.3.201] PHP Notice: Undefined variable: sourcedid in /usr/local/nagiosxi/html/includes/components/deploydashboard/index.php on line 158, referer: https://nagios.redacted.local/nagiosxi/in$
I'm using the HTML encoding for the text I'm adding to the dashlet. This is what I'm trying to add.
Code: Select all
<b>*ISP Phone Numbers*</b> <BR>
Advanced Cable - 954-753-0100 <BR>
ATT-Uverse - 800-246-8464 <BR>
Beyond Communications - 561-288-9189 <BR>
Brighthouse - Tampa/West Coast - 877-897-7333 <BR>
Brighthouse - Orlando/East Coast - 877-632-2337 <BR>
Century Link - 800-786-6272 <BR>
Comcast - 800-391-3000 <BR>
Comcast Enterprise- 1-800-741-4141 <BR>
Frontier Communications - 800-921-8101 <BR>
Hometown Cable - 772-345-6000 <BR>
Hotwire Communications 800-355-5668 <BR>
Summit Broadband- 239-244-0242 option 2 <BR>
Windstream - 866-445-3194 <BR>
<BR>
<b>*DSL Phone Numbers*</b> <BR>
ATT DSL - 888-288-8339 <BR>
Windstream DSL- 866-445-5880 <BR>
<BR>
<b>*T1 Phone Numbers*</b> <BR>
ATT T1 - 888-613-6330 <BR>
Century Link T1 - 800-603-8044 <BR>
Level3 Communications- 1-877-253-8353 <BR>
T3 Commmunications - 877-333-8127 <BR>
Windstream T1 – 800-600-5050 <BR>
I also tried using <BR/> which is proper not necessary. Also tried using this to see if the carriage returns were messed up, still no dice.
Code: Select all
<b>*ISP Phone Numbers*</b> <BR>Advanced Cable - 954-753-0100 <BR>ATT-Uverse - 800-246-8464 <BR>Beyond Communications - 561-288-9189 <BR>Brighthouse - Tampa/West Coast - 877-897-7333 <BR>Brighthouse - Orlando/East Coast - 877-632-2337 <BR>Century Link - 800-786-6272 <BR>Comcast - 800-391-3000 <BR>Comcast Enterprise- 1-800-741-4141 <BR>Frontier Communications - 800-921-8101 <BR>Hometown Cable - 772-345-6000 <BR>Hotwire Communications 800-355-5668 <BR>Summit Broadband- 239-244-0242 option 2 <BR>Windstream - 866-445-3194 <BR> <BR><b>*DSL Phone Numbers*</b> <BR>ATT DSL - 888-288-8339 <BR>Windstream DSL- 866-445-5880 <BR><BR><b>*T1 Phone Numbers*</b> <BR>ATT T1 - 888-613-6330 <BR>Century Link T1 - 800-603-8044 <BR>Level3 Communications- 1-877-253-8353 <BR>T3 Commmunications - 877-333-8127 <BR>Windstream T1 – 800-600-5050 <BR>
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 2:16 pm
by hsmith
Is it behaving when you don't use HTML in it?
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 2:27 pm
by ssax
It's because your last entry has a bad dash in it:
Try this:
Code: Select all
<b>*ISP Phone Numbers*</b> <BR>
Advanced Cable - 954-753-0100 <BR>
ATT-Uverse - 800-246-8464 <BR>
Beyond Communications - 561-288-9189 <BR>
Brighthouse - Tampa/West Coast - 877-897-7333 <BR>
Brighthouse - Orlando/East Coast - 877-632-2337 <BR>
Century Link - 800-786-6272 <BR>
Comcast - 800-391-3000 <BR>
Comcast Enterprise- 1-800-741-4141 <BR>
Frontier Communications - 800-921-8101 <BR>
Hometown Cable - 772-345-6000 <BR>
Hotwire Communications 800-355-5668 <BR>
Summit Broadband- 239-244-0242 option 2 <BR>
Windstream - 866-445-3194 <BR>
<BR>
<b>*DSL Phone Numbers*</b> <BR>
ATT DSL - 888-288-8339 <BR>
Windstream DSL- 866-445-5880 <BR>
<BR>
<b>*T1 Phone Numbers*</b> <BR>
ATT T1 - 888-613-6330 <BR>
Century Link T1 - 800-603-8044 <BR>
Level3 Communications- 1-877-253-8353 <BR>
T3 Commmunications - 877-333-8127 <BR>
Windstream T1 - 800-600-5050 <BR>
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 3:10 pm
by Envera IT
ssax wrote:It's because your last entry has a bad dash in it:
Try this:
Code: Select all
<b>*ISP Phone Numbers*</b> <BR>
Advanced Cable - 954-753-0100 <BR>
ATT-Uverse - 800-246-8464 <BR>
Beyond Communications - 561-288-9189 <BR>
Brighthouse - Tampa/West Coast - 877-897-7333 <BR>
Brighthouse - Orlando/East Coast - 877-632-2337 <BR>
Century Link - 800-786-6272 <BR>
Comcast - 800-391-3000 <BR>
Comcast Enterprise- 1-800-741-4141 <BR>
Frontier Communications - 800-921-8101 <BR>
Hometown Cable - 772-345-6000 <BR>
Hotwire Communications 800-355-5668 <BR>
Summit Broadband- 239-244-0242 option 2 <BR>
Windstream - 866-445-3194 <BR>
<BR>
<b>*DSL Phone Numbers*</b> <BR>
ATT DSL - 888-288-8339 <BR>
Windstream DSL- 866-445-5880 <BR>
<BR>
<b>*T1 Phone Numbers*</b> <BR>
ATT T1 - 888-613-6330 <BR>
Century Link T1 - 800-603-8044 <BR>
Level3 Communications- 1-877-253-8353 <BR>
T3 Commmunications - 877-333-8127 <BR>
Windstream T1 - 800-600-5050 <BR>
Thank you! I see the dash now, sneaky little bastid.
Re: Can't add new Dashlet
Posted: Fri Apr 08, 2016 3:12 pm
by Envera IT
This is what I get for using onenote to keep snipits of code. Lesson learned.
Re: Can't add new Dashlet
Posted: Mon Apr 11, 2016 11:05 am
by rkennedy
Ah! Notepad for the win
Are we good to mark this thread as resolved then?