What do I need to do/add to my dashlet to make it auto refresh every x minutes?
Dashlet refresh
Dashlet refresh
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?
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
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
Re: Dashlet refresh
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Dashlet refresh
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.
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.