enable_environment_macros not working in 4.0.4
enable_environment_macros not working in 4.0.4
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
-
MBowman325
- Posts: 14
- Joined: Fri Aug 09, 2013 3:31 pm
Re: enable_environment_macros not working in 4.0.4
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
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
Nice catch, that got me going no problem
. Still wondering why environment macros doesn't work though
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: enable_environment_macros not working in 4.0.4
Hey Zolakk we're looking into this, what are you specifically trying to do?
Re: enable_environment_macros not working in 4.0.4
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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: enable_environment_macros not working in 4.0.4
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: enable_environment_macros not working in 4.0.4
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: enable_environment_macros not working in 4.0.4
Well, in either case, glad it's working now, going to close this thread.