|Skia 437f62888e Tiny fix (le gaulois)||2 years ago|
|inventory||2 years ago|
|static||2 years ago|
|templates||2 years ago|
|LICENSE||2 years ago|
|README.md||2 years ago|
|__init__.py||2 years ago|
|app.py||2 years ago|
|requirements.txt||2 years ago|
|settings.sample.py||2 years ago|
This tool is made to generate a simple inventory of a whole architecture, based on the informations that Nagios/Icinga can provide through Livestatus.
It was designed for SAP ERP, but it can be applied to other similar applications. It still sadly has been tested only with SAP.
Some basic configuration must be done by hand to fit your architecture, then the script tries to fetch all the hosts from Livestatus based on the groups provided, and guesses to which Module/Environment the host belongs.
It has a web-based interface to display the database in a fancy way.
The interface is made in four levels:
The top-right corner panel allows to perform some operations:
One can switch to admin mode in order to do some basic privileged tasks. This is done by accessing the /admin/ page to get the right cookie.
Once in admin mode the following operations can be done:
What follows is useful only for those who want (or have) to maintain an instance of SAPPIN.
Start by copying settings.sample.py to settings.py.
Take exemple from this file to make settings.py to fit your needs. The file should be self-explanatory through the comments.
Don't forget to create the appropriate folders. By default, you need ./data/files/.
To protect the admin mode, just restrict the access to the /getadmin/ URI at a reverse-proxy level, with the ACL you
The script does not provide any login capabilities, so it's the only way to restrict permissions, but it's also the most flexible regarding your architecture.
By default, it may be a good idea to backup the ./data/ folder, since it contains the databases and the uploaded
This folder can be changed in the settings in the UPLOAD_FOLDER and the SOURCE_BASE variables. Don't forget the backup the custom folders you set!
The MIT License (MIT)
Copyright (c) 2016 Skia
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.