×
Back to ITRS Internal Only FAQ
Internal documentation only
This page has been marked as draft.
Changing default downtime range from 1 day to 2 hours (specific time)
Scenario Copied
User wants to know how to change the default schedule downtime range
Resolution Copied
In changing your Default Schedule Downtimeyou will need to follow these steps below:
On your orchestrator:
- The below includes a step to backup your existing file for any roll-back needed
- The important value to review/update is the “
Ext.Date.MINUTE,120” near the end of the perl command- 120 (is the minutes), matching this FAQ
- Update that to 15, if you wish for 15 minutes of downtime or 480 for 8 hours and so on
cd /opt/opsview/webapp/docroot/static/monitoring
cp app-all.js app-all.js.backup
perl -i -pe 's/value:Ext.Date.add(new Date(),Ext.Date.DAY,\d+)/value:new Date()/;s/"end_time",value:Ext.Date.format(new Date(),"H:i")/"end_time",value:Ext.Date.format(Ext.Date.add(new Date(),Ext.Date.MINUTE,120),"H:i")/' app-all.js
After running the commands, you will need to make sure to “Apply Changes” in Configuration > Apply Changes. This will reflect no changes or Zero changes but still proceed on it for the Schedule Downtime change to reflect.
Then HARD reload the web browser
- to do this in Chrome, you need to either use CTRL+F5 or set inspect or development mode (F12) and then right-click the refresh button.
["Geneos"]
["FAQ"]