skip to main content
Widgets : Packaging your widget
   
Packaging your widget
 
Creating the manifest.xml
Creating the widget package
To make it easy for other users to install and start using your widget you should make a package of it. Then one can install the package in the Tactical Overview in the op5 Monitor GUI.
The package is actually a normal zip file that contains
the widget in it self
manifest.xml
The manifest.xml file contains basic data needed by op5 Monitor so that it knows how to install the widget.
Creating the manifest.xml
To create a manifest.xml file
1 Create an xml file that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Manifest file for widget to be used in Ninja4Nagios -->
<widget_content>
<author>John Doe</author>
<version>1.0</version>
<Friendly_name>My cool widget</Friendly_name>
<description>A cool widget for op5 Monitor Tactical Overeview.</description>
<page>tac/index</page>
</widget_content>
2 Place it in the folder where your widget is located and make sure it is called:
manifest.xml
Creating the widget package
Now your widget should be ready and located in the filesystem of your op5 Monitor server.
In this instruction we assume that your widget is called:
my_own_widget
To create a widget package
1 Go to the folder above the my_own_widget folder where your widget is located.
2 Create the package with the zip command like this
# zip -r my_own_widget.zip my_own_widget/