[hobbit] Remedy Ticketing

Henrik Stoerner henrik at hswn.dk
Thu Aug 24 23:31:39 CEST 2006


On Thu, Aug 24, 2006 at 05:11:51PM -0400, Epp, Matthew Contractor PEO EIS AKO wrote:
> I have an existing Remedy ticket generation system for Big Brother that I'm
> trying to convert to Hobbit. Basically, I had added some code to dohostsvc.c
> for an additional button next to HISTORY:
[snip]
> to grab whatever data I needed from the history logs. If someone even wanted
> to open a ticket on a historical event, they could, because the TIMEBUF
> always pointed to the correct event log.
> 
> Now, I see the part in htmllog.c that creates the historybutton(), but I
> can't see where I might be able to grab the TIMEBUF from. I tried an
> xgetenv("TIMEBUF") but no luck. Any other way I can get the timestamp?

I'm slightly confused about what you did. The *current* status page
(which is where you have a "History" button) doesn't have a "timebuf"
value, because it's just the current status - and it might not be logged
in the historical logs directory.

On the other hand, a *historical* status log page doesn't have a
"History" button because ... well, you're already looking at history.

If you can work it out yourself, then you probably need the "logtime"
parameter for the generate_html_log() routine. This has the Unix
timestamp of the log entry. If you need to convert the timestamp into
the filename format used by the historical logs, "histlogtime(timestamp);" 
will return a string with the correct formatting of the timestamp.


Regards,
Henrik




More information about the Xymon mailing list