luk_s - 2010-02-22

hi

i'm trying to edit the code to automatically create link URLs to a CI.

E.g. I have a CI "System" which has several informations about a  specific system in it.
So far the URL's needed to be added manually from templates. So the text was copied into a "URL" Datatype filed. The links would look like:

Wiki URL: ../wiki/doku.php?id=information:HOSTNAME
Nagios Status URL : ../nagios/cgi-bin/status.cgi?host=HOSTNAME
Performance Status: ../pnp4nagios/graph?host=HOSTNAME

So i tried to find a way to do this automatically. In the first "phase" i thought i can duplicate the datatype "URL" and create new datataypes for wiki/nagios urls, so i would only have to add the hostname, as the rest is static.
even more "nice" would be a solution where the HOSTNAME is fetched from the database, the HOSTNAME is lready set in the CI istelf ans also stored in the database.

I was looking into the source php code but i'm a bit lost.

so maybe one of you guys know the location in the code where such things could be edited ?

cheers, lukas