BTW....its not a plugin or a notification that I wan't this for.
I want the macro substitution to happen in the host.notes_url and/or host.action_url links that are displayed in the extinfo.cgi when it is displaying details about a host.
OwenC
Search found 4 matches
- Mon Mar 07, 2016 4:06 pm
- Forum: Open Source Nagios Projects
- Topic: $CONTACTADDRESSv$ macro expansion in extinfo.cgi
- Replies: 8
- Views: 2799
- Mon Mar 07, 2016 4:00 pm
- Forum: Open Source Nagios Projects
- Topic: $CONTACTADDRESSv$ macro expansion in extinfo.cgi
- Replies: 8
- Views: 2799
Re: $CONTACTADDRESSv$ macro expansion in extinfo.cgi
Eric, I think I understand what you are saying. To put it another way then...It is the Nagios process that is doing the substitution of the macro values. The CGIs are only a front end that display information that is requested from the Nagios process. In order for the Nagios process to know which ob...
- Mon Mar 07, 2016 11:19 am
- Forum: Open Source Nagios Projects
- Topic: $CONTACTADDRESSv$ macro expansion in extinfo.cgi
- Replies: 8
- Views: 2799
Re: $CONTACTADDRESSv$ macro expansion in extinfo.cgi
@elyod, Thanks for the response. Technically Nagios does know who is logged in because it grabs that from the "REMOTE_USER" environment variable, see: https://fossies.org/dox/nagios-4.1.1/cgiauth_8c_source.html#l00064 Remember that it shows this in the GUI as "Logged in as <http_usern...
- Mon Mar 07, 2016 3:56 am
- Forum: Open Source Nagios Projects
- Topic: $CONTACTADDRESSv$ macro expansion in extinfo.cgi
- Replies: 8
- Views: 2799
$CONTACTADDRESSv$ macro expansion in extinfo.cgi
I have a scenario where I want to use the $CONTACTADDRESSv$ macros to build a URL for the action_url host directive. The $CONTACTADDRESSv$ should be based on the contact currently logged into the CGI web interface.
This doesn't work. Is there a way to do this?
OwenC
This doesn't work. Is there a way to do this?
OwenC