pagerduty cron job doesn't update proxy when proxy IP is changed
Bug #1989032 reported by
Linda Guo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nagios Charm |
In Progress
|
Medium
|
Aliaksandr Vasiuk |
Bug Description
Nagios gets proxy IP from environment variable. When proxy is changed, pagetduty cron job (/etc/cron.
proxy = env.get(
Changed in charm-nagios: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
summary: |
- nagios pagerduty cron job doesn't update when proxy IP is changed + pagerduty cron job doesn't update proxy when proxy IP is changed |
Changed in charm-nagios: | |
assignee: | nobody → Aliaksandr Vasiuk (valexby) |
Changed in charm-nagios: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
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!