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:

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

Opsview - Changing default downtime range from 1 day to 2 hours (specific time)

["Geneos"] ["FAQ"]

Was this topic helpful?