Dashlet refresh

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Dashlet refresh

Post by BanditBBS »

Any dashlet creators out there want to help me out :)

What do I need to do/add to my dashlet to make it auto refresh every x minutes?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Dashlet refresh

Post by tmcdonald »

Could probably just get away with some javascript. What specifically are you looking to refresh? A div's contents or the entire URL itself?
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Dashlet refresh

Post by Box293 »

tmcdonald is spot on in relation to the JavaScript.

Have a look at my Status Info Dashlet:

http://exchange.nagios.org/directory/Ad ... et/details

Specifically in statusinfo.inc.php lines 1778 to 1780.

What is happen is that the JavaScript is reloading the dashlet DIV every X interval, which is defined by the user when they add the dashlet to the dashboard.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked