On 05/25/2012 02:52 PM, Mark D. Nagel wrote: > On 5/24/2012 11:59 PM, Mark Elsen wrote: >> >> >> > - I have some 'home-written' notification scripts launched >> from NAGIOS ; >> > now when using nagios 3.4.1 , all NAGIOS_* variables are gone. >> (printenv listing). >> >> >+ Make sure you're not using large_installation_tweaks and >> that you have >> >+ enable_environment_macros=1 set in nagios.cfg. >> >> >> >> Tx! I explicitly needed : >> >> enable_environment_macros=1 >> >> In nagios.cfg when using 3.4.1 , to get my problem>resolved<. I >> wasn't using this setting before (nor was it set to 0). > > > It sure would be neat if this was something you could enable environment > macros per command. Then you could have the default be off to get > better performance for checks, but still get them for notification > commands, which is often the main place they are useful. >
They're hardly useful there either, tbh, and if you really need them you can just put them up as command-line macros before the command you wish to run, like so: NAGIOS_SOMEVAR="$NAGIOS_SOMEVAR$" /path/to/something -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users@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