Re: [Nagios-devel] [Patch] Nagios 3.0.3: extinfo.cgi to show hosts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] [Patch] Nagios 3.0.3: extinfo.cgi to show hosts

Post by Guest »

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Ericsson wrote:
> Marcus Fleige wrote:
>> Hi Ethan, hi list,
>>
>> i had a request here to make the custom variables defined in host
>> definitions visible. Thought it might be useful for others too, so here
>> is a patch against Nagios 3.0.3 extending the extinfo.cgi to show more
>> info. (See screenshot for an example.)
>>
>
> Looks nice, and I can imagine it being useful, depending on what kind
> of information you put there. OTOH, I know a lot of people put some
> confidential data in their custom variables.
>
> If you amend the patch with the possibility to make displaying the
> custom vars configurable from cgi.cfg and let it have a default
> value of "off" (ie, don't show custom variables), I'll queue it
> for Ethan to review later.

Some time ago I suggested allowing custom macros to be processed by the
filters (url_encode, stripping shell characters) when they are prefixed
by specific strings (ex: _URL_SOMEURL would be URL-encoded). While the
exact syntax could be worked on, it would be possible at the same time
to allow prefixes for showing the variables. Maybe a single letter flag
could be useful as we could stack them. Ex: _SU_SOMETHING would mean
"showable + url_encode" so the macros would be both shown and url-encoded.

Also, using single-character flags, there would be a need to
differentiate between flagged and flagless custom macros - I haven't
really though about that yet... since underscores are likely valid,
maybe double underscore (ex: __SU_SOMETHING) with an error if a macro
contains unknown flags in case someone already use double_underscores
for some reason.

Any thoughts?

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2nOA6dZ+Kt5BchYRAuiwAKDuK/1shxIDY0bwb2oQtF2e5lJX2ACgziPM
x4YRoyvQ0QiJplg7pf6Egh8=
=wVX/
-----END PGP SIGNATURE-----





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked