Page 1 of 1
enable_environment_macros not working in 4.0.4
Posted: Sun Mar 16, 2014 6:12 pm
by zolakk
So I have been waiting for the new version to come out that fixes the bug where enable_environment_macros does not work so I can run pnp4nagios, but and I am still not getting macros across even though I have process_perfdata set in nagios.cfg and my service/hosts as well as enable_environment_macros=1 set in my nagios.cfg. Even just setting the performance data script to one that just dumps the environment variables to a file and i'm not getting any nagios ones at all. At first I thought it may be somehow something left over from my upgrade so I built a fresh instance following this guide (
http://www.ubuntugeek.com/how-to-instal ... ander.html) and still nothing. Am I somehow missing an additional step somewhere? Searching for the issue doesn't turn up anything but the bugtrack that lists it as resolved so I'm at a loss
Re: enable_environment_macros not working in 4.0.4
Posted: Mon Mar 17, 2014 2:38 pm
by MBowman325
So the issue is listed as corrected in 4.0.3. What I didn't see (or overlooked) in the report on bug 498 was that it appears everyone is running PNP4Nagios in Bulk mode. I've just finished correcting my install from synchronous to Bulk with NPCD and I appear to be getting historical graphing again. (I also had .6.17 installed of pnp4nagios and upgraded that to .6.21). While it (pnp4nagios site) specifically points out that Bulk mode with NPCD and npcdmod doesn't work, I'd be if you're running synchronous you'll be up and running with 30 minutes by switching to Bulk mode with NPCD.
Please reference
http://docs.pnp4nagios.org/pnp-0.6/conf ... _with_npcd
or if you'd like:
http://www.monitoring-portal.org/wbb/in ... adID=29625
Re: enable_environment_macros not working in 4.0.4
Posted: Mon Mar 17, 2014 3:41 pm
by zolakk
Nice catch, that got me going no problem

. Still wondering why environment macros doesn't work though
Re: enable_environment_macros not working in 4.0.4
Posted: Tue Mar 18, 2014 9:14 am
by slansing
Hey Zolakk we're looking into this, what are you specifically trying to do?
Re: enable_environment_macros not working in 4.0.4
Posted: Tue Mar 18, 2014 10:53 am
by zolakk
Thanks. I was trying to run pnp4nagios in sync mode so running in bulk mode with MBowman's advice has gotten me through it and my issue essentially resolved via workaround
Re: enable_environment_macros not working in 4.0.4
Posted: Tue Mar 18, 2014 3:44 pm
by sreinhardt
Can I ask why you wish to use sync mode instead of bulk? Bulk seems to range from slightly to far lighter on systems depending on the amount of performance data that would need to be processed, and number of processes that would need to start in sync mode. However I would agree, that if it is not working properly, exporting env macros with perfdata(hopefully the last part that isn't exporting) it should be resolved properly and we will look into it.
Re: enable_environment_macros not working in 4.0.4
Posted: Tue Mar 18, 2014 3:48 pm
by zolakk
I am happy now with bulk mode, I was just trying to do sync mode because it was easier to set up and my environment is small enough that the performance between the two modes isn't really that noticeable anyway
Re: enable_environment_macros not working in 4.0.4
Posted: Wed Mar 19, 2014 9:50 am
by slansing
Well, in either case, glad it's working now, going to close this thread.