Can't add new Dashlet

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Can't add new Dashlet

Post 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?
I like graphs...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Can't add new Dashlet

Post by hsmith »

Is anything showing up in the error logs?

Code: Select all

tail -f /var/log/httpd/error_log
Then try to add the dashlet.
Former Nagios Employee.
me.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Can't add new Dashlet

Post by Envera IT »

hsmith wrote:Is anything showing up in the error logs?

Code: Select all

tail -f /var/log/httpd/error_log
Then try to add the dashlet.
Tried adding the dashlet, I'm not seeing anything pop up in the httpd log when its added.
I like graphs...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Can't add new Dashlet

Post by hsmith »

Are you using SSL? If so, try /var/log/httpd/ssl_error_log
Former Nagios Employee.
me.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Can't add new Dashlet

Post 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>
I like graphs...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Can't add new Dashlet

Post by hsmith »

Is it behaving when you don't use HTML in it?
Former Nagios Employee.
me.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Can't add new Dashlet

Post 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>
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Can't add new Dashlet

Post 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.
I like graphs...
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Can't add new Dashlet

Post by Envera IT »

This is what I get for using onenote to keep snipits of code. Lesson learned.
I like graphs...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can't add new Dashlet

Post by rkennedy »

Ah! Notepad for the win :)

Are we good to mark this thread as resolved then?
Former Nagios Employee
Locked