Nagios not loading bash_profile
Posted: Thu Jun 15, 2017 10:42 am
I am trying to get an AWS plug-in working (https://github.com/level23/nagios-cloudwatch-metrics)
I have installed awscli as the nagios user, and can run it on the command line (although had to edit the .bash_profile to add: export PATH=~/.local/bin:$PATH
I can run the nagios-cloudwatch-metrics from the command line with no issue, however when I try to run it from within nagios it can't seem to find the aws executable.
I'm presuming this is because nagios isn't loading the bash_profile - is there somewhere in a nagios config where I export PATH to get it to be able to find it?
Thanks
I have installed awscli as the nagios user, and can run it on the command line (although had to edit the .bash_profile to add: export PATH=~/.local/bin:$PATH
I can run the nagios-cloudwatch-metrics from the command line with no issue, however when I try to run it from within nagios it can't seem to find the aws executable.
I'm presuming this is because nagios isn't loading the bash_profile - is there somewhere in a nagios config where I export PATH to get it to be able to find it?
Thanks