Page 1 of 1
Environment Variables of nrpe.cfg
Posted: Wed Jan 17, 2018 11:01 am
by lngphp
Is it possible to have environment variables of remote server in nrpe.cfg?
Re: Environment Variables of nrpe.cfg
Posted: Wed Jan 17, 2018 1:43 pm
by mcapra
I know the
configparser package allows the use of interpolated variables through
SafeConfigParser. NCPA does not appear to use a SafeConfigParser (it appears to use a ConfigParser), but I'll let a tech verify one way or the other whether or not this is or will be supported.
Relevant StackExchange post explaining this a bit more:
https://stackoverflow.com/questions/265 ... v-variable
EDIT: Ha, this post is totally not about NCPA but i'm going to leave this here anyway.
Re: Environment Variables of nrpe.cfg
Posted: Wed Jan 17, 2018 5:25 pm
by npolovenko
Hello,
@lngphp. Are you referring to the nrpe agent on linux systems? I don't think you will be able to use environment variables in nrpe.cfg, but you could write a custom plugin that is going to be called via nrpe and that will use environment variables.