[Lazarus] Adds Gauge component on Lazarus
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Sat Jul 28 16:04:45 CEST 2012
Sven Barth wrote:
> On 28.07.2012 00:43, Mark Morgan Lloyd wrote:
>> Do that and I'll contribute my SNMP MIB to Pascal compiler :-) Although
>> SNMP's usage of "gauge" is obviously a bit odd.
>
> You have a SNMP MIP to Pascal compiler? This is such a good timing then,
> because I'll need that in a couple of weeks for a monitoring project at
> the university :)
You're welcome to it, but here's the health warning :-)
What I've done is relied on an MIB being run through smidump and stored
as a file. Provided that that works, I run that file through a recursive
descent parser (circa 1964 vintage :-) and eventually output a class
definition for each described object. All descriptive text etc. is
preserved and I've been careful with formatting, output files can get
big (>500Kb for RFC1213_MIB.pas).
What I've not done is the final stage where objects are instantiated
with an IP address etc., including code to interface to e.g. Synapse. I
couldn't work out how best to do that, ideally it wouldn't rely on any
more processing stages, and something else cropped up.
What I should have done was work directly from the data structures built
up by the sming (?) library, but I couldn't get my head round how they
were representing things and working from a human-readable file was easier.
What I wanted to do was to be able to instantiate e.g. a router as a
graphical component contained in a DLL, so that each DLL could have its
own mix of classes; ultimately, something like a tailored Lazarus for
building NMSes. However that's moving outside my abilities.
/If/ it turned out there was money to be made out of it we could use
some :-)
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list