Parsing of macro-vars
Patrick Proy
nagios-user at proy.org
Fri Mar 11 16:23:33 CET 2005
Hi,
I submitted a patch (promptly ignored) 2 months ago which was adding some
macro variables. It is working with CVS version 2004.12.19. It can be a good
start !
Patrick
Nagios At proy.org
-----Message d'origine-----
De : nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] De la part de
Thomas.Zimmer at oppenheim.de
Envoyé : vendredi 11 mars 2005 15:42
À : nagios-users at lists.sourceforge.net
Objet : Re: [Nagios-users] Parsing of macro-vars
Sure master, I didn´t take it wrong :-)
The file which reads the config wasn´t exactly what I searched.
So I will repose my question:
Is there any (global) function available for parsing macro-vars out of a
string?
Andreas, what would you propose to start with, if I`m interested in the
nagios code? With the rich code-documentation?
Thanks a lot, thomas
Thomas.Zimmer at oppenheim.de wrote:
> Hi all!
>
> Can I use macros in the config-files? In former versions of Nagios, I
> wrote some cgi´s which were bound into the service-/host-overview as
> "extended informations"; I used the "old style" of specifying extended
> informations
to
> be compatible with nawui.
>
> Obvisually, macros in the main config-files are parsed, whereas macros
> in normal config-files - especially the extended service-/host-
> informations - are not.
>
> Could you give me a hint, with which c-code-files the
> Nagios-config-files are parsed? Are there any functions to parse
> macro-vars out of a string?
>
Don't take this the wrong way, but if you can't find the proper file then I
really don't think you should try and muck about with it.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest & candid reviews
on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest & candid reviews
on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_nag_snmp_2004.12.21.patch
Type: application/octet-stream
Size: 35528 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050311/3ae67498/attachment.obj>
More information about the Users
mailing list