Open for Voting

Script file on orion server rather than pasting script into Monitor

I am in the middle of changing one of my Application Template monitor scripts used in about 60 different Component Monitors.  In particular this one is a monitor of Filesystems on a UNIX server.  It is written in such a way that I can pass it certain variables on the "Command Line" including the filesystem mount point.  The particular script I am working on here is 700 lines long.  Even with extensive QA testing of the script outside of Orion, once I add it into the Component Monitors, there is bound to be some tweaking that is still needed.

Each time the "tweaking takes" place and is again tested outside of Orion, I have to copy and paste the script into each of the Component Monitors again.  This can get fairly labor intensive with this many Component Monitors using the same script and with you add to that the possibility of several tweaks, it gets even worse.

So here is my suggestion... If, as an option to using the "Script Body" field, there was another field which allowed you to select a file, then the script could be stored in the file and if you need to change the script, you just change it in that one location.  Once a file is selected, maybe the contents of the file could appear in the "Script Body" field.  Then when you choose to "Edit Script" it could have the file content remain in read-only and allow you to get the script output to populate the "Script Output" fields.

I can actually see several ways of doing this for example, maybe you have three fields with the first being a Script File Name including a browse button.  If you browse and choose or type in a file for this field then the Script Body, displays the content of the file but in read-only.  However if you leave the Script File Name field blank, then you can edit in the Script Body pop-up similar to what we can do today.  Then make a button on the main screen for "Get Script Output" and have just the node and credential choices in this window before initiating the query.

  • It probably would also help if I explained that the Component Monitor type is "Linux Script"...

  • I clarify a bit...

    If there was an optional field on the current "Edit Script" screen which would allow you to put in a filename instead of pasting the script into the "Script Body" field on that screen it would be of great help.  To be safe there should probably be radio buttons added for this new filed and the "Script Body" field so that only one or the other would be used.

    Additionally I did a count of the Component Monitors using the same script I discussed in my first paragraph above and the count is actually 98 Component Monitors.  I think you can understand how this addition would significantly simplify my management of Component Monitors.