sentinel.sh
Author | Richard Finegold |
---|---|
Compatibility | Xymon 4.2 |
Requirements | bash with wget and printf |
Download | None |
Last Update | 2010-02-25 |
Description
This script tracks licenses in use for each SafeNet Sentinel Protection Server key, optionally graphing. For example, LISCAD (Leica), Leica Geo Office, GT STRUDL. It'll also show whether ESRI floating licensing is active, as ESRI uses SuperPro keys, but that isn't as useful.
Installation
Client side
- If you haven't already, install the Sentinel Protection Server.
- Note the port used by the Sentinel Protection Server (defaults to 6002). Make sure you can bring it up in a web page (e.g. http://example.com:6002/) and confirm that it invokes some Java. If you aren't sure what the port is, you can check within Microsoft Windows:
- Run
C:\Program Files\Common Files\SafeNet Sentinel\Sentinel Protection Server\loadserv.exe
- Press the “Configure…” pushbutton.
- Check the Http Port.
- On the resulting web page, note the Serial Numbers, and determine what each key protects.
Server side
Edit $BBHOME/etc/bb-hosts, adding a sentinel
tag to the appropriate lines, with optional http port and/or key descriptions (used in status and optional graphing). Use the following syntax:
- sentinel[:port][,hexval=name[,hexval=name]…]
For example:
sentinel:6102 sentinel,3573=Master,0045=Slave
Copy sentinel.sh (below) to your $BBHOME/ext and make sure it's executable.
Add the following (or similar) to $BBHOME/etc/hobbitlaunch.cfg
[sentinel] NEEDS hobbitd CMD /home/hobbit/server/ext/sentinel.sh LOGFILE $BBSERVERLOGS/sentinel.log INTERVAL 5m
Optional graphing
Source
sentinel.sh
Known Bugs and Issues
- As noted in the source code, this depends on timing between checking licenseinfo.html followed immediately by licenseinfo.xml. So try to avoid having two servers requesting these simultaneously.
- The licenseinfo.xml doesn't seem very reliable. Possibly due to the above, possibly due to other circumstances.
- It has only been tested with SuperPro keys.
To Do
- Discover a method for querying other than checking XML over HTTP results. Yes, there is a usage log file, but parsing that seems likely to require storing state information.
Credits
I wish I could give credit to someone else for determining the licenseinfo details, but I had to discover it on my own.
Changelog
- 2010-02-25
- Initial release