Hey Linda, thanks for reporting the issue! Would you elaborate on the expected behavior?
That how I tried to set proxy for pagerduty and seems like it works for me
1. I deployed charm-nagios revision 49
2. Did `juju config central-monitor enable_pagerduty=true`
3. Checked that no --proxy switch in `/etc/cron.d/nagios-pagerduty-flush`
$ cat /etc/cron.d/nagios-pagerduty-flush
#------------------------------------------------
# This file is juju managed
#------------------------------------------------
# Flush the nagios pagerduty alerts every minute as per
# http://www.pagerduty.com/docs/guides/nagios-perl-integration-guide/
* * * * * nagios /usr/local/bin/pagerduty_nagios.pl flush --queue-dir /var/lib/nagios3 /pagerduty
4. Then set proxy for juju `juju model-config juju-https-proxy=http://squid.internal:3128`
5. Disabled and enabled pagerduty to reconfigure it:
$ juju config central-monitor enable_pagerduty=false
$ juju config central-monitor enable_pagerduty=true
6. Once charm is ready check pagerduty cronjob again
$ cat /etc/cron.d/nagios-pagerduty-flush
#------------------------------------------------
# This file is juju managed
#------------------------------------------------
As you see the --proxy switch is added to the cronjob configuration.
Maybe I'm reproducing it in the wrong way. Should I set JUJU_CHARM_HTTPS_PROXY somehow another way? Or should the charm be reconfigured right after `juju model-config juju-https-proxy=http://squid.internal:3128` without manipulations with the charm configuration (maybe in such a case makes sense to add proxy to charm's configurable params list...)
I am looking forward to your reply!
Hey Linda, thanks for reporting the issue! Would you elaborate on the expected behavior? pagerduty= true` d/nagios- pagerduty- flush` d/nagios- pagerduty- flush ------- ------- ------- ------- ------- ------- - ------- ------- ------- ------- ------- ------- -
That how I tried to set proxy for pagerduty and seems like it works for me
1. I deployed charm-nagios revision 49
2. Did `juju config central-monitor enable_
3. Checked that no --proxy switch in `/etc/cron.
$ cat /etc/cron.
#-----
# This file is juju managed
#-----
# Flush the nagios pagerduty alerts every minute as per www.pagerduty. com/docs/ guides/ nagios- perl-integratio n-guide/ bin/pagerduty_ nagios. pl flush --queue-dir /var/lib/nagios3 /pagerduty squid.internal: 3128` pagerduty= false pagerduty= true d/nagios- pagerduty- flush ------- ------- ------- ------- ------- ------- - ------- ------- ------- ------- ------- ------- -
# http://
* * * * * nagios /usr/local/
4. Then set proxy for juju `juju model-config juju-https-proxy=http://
5. Disabled and enabled pagerduty to reconfigure it:
$ juju config central-monitor enable_
$ juju config central-monitor enable_
6. Once charm is ready check pagerduty cronjob again
$ cat /etc/cron.
#-----
# This file is juju managed
#-----
# Flush the nagios pagerduty alerts every minute as per www.pagerduty. com/docs/ guides/ nagios- perl-integratio n-guide/ bin/pagerduty_ nagios. pl flush --proxy http:// squid.internal: 3128 --queue-dir /var/lib/ nagios3/ pagerduty
# http://
* * * * * nagios /usr/local/
As you see the --proxy switch is added to the cronjob configuration. HTTPS_PROXY somehow another way? Or should the charm be reconfigured right after `juju model-config juju-https-proxy=http:// squid.internal: 3128` without manipulations with the charm configuration (maybe in such a case makes sense to add proxy to charm's configurable params list...)
Maybe I'm reproducing it in the wrong way. Should I set JUJU_CHARM_
I am looking forward to your reply!