Merge lp://staging/~pedronis/charms/trusty/apache2/nagios_extra_check_https into lp://staging/charms/trusty/apache2
Proposed by
Samuele Pedroni
Status: | Work in progress |
---|---|
Proposed branch: | lp://staging/~pedronis/charms/trusty/apache2/nagios_extra_check_https |
Merge into: | lp://staging/charms/trusty/apache2 |
Prerequisite: | lp://staging/~verterok/charms/trusty/apache2/nagios_servicegroups |
Diff against target: |
85 lines (+50/-1) 3 files modified
config.yaml (+13/-0) hooks/hooks.py (+9/-0) hooks/tests/test_nrpe_hooks.py (+28/-1) |
To merge this branch: | bzr merge lp://staging/~pedronis/charms/trusty/apache2/nagios_extra_check_https |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matt Bruzek (community) | Needs Fixing | ||
Review via email:
|
Commit message
support new config nagios_
Description of the change
support new config nagios_
To post a comment you must log in.
Unmerged revisions
- 69. By Samuele Pedroni
-
the spelling was confusing, rename
- 68. By Samuele Pedroni
-
support new config nagios_
extra_check_ https to specify extra nrpe check_http checks, useful when fronting more than one backend
Hello Samuele,
Thank you for the submission of this change to the apache2 charm. Passing extra parameters to the Nagios http_checks can help build better monitoring for this charm.
I deployed a charm with your changes and they seemed to work on manual testing but I did not know how to use the new configuration option (even after I read config.yaml). I suspect users would have the same questions and problems. It would be great to add a section to the readme so other users know how to use this new configuration option. Perhaps give a real example of flags that you could set and the juju commands to set them. For example I tried the following commands:
juju set apache2 nagios_ extra_http_ checks= "- name: test1 extra_http_ checks= ””
params: -H localhost
- name: test2
params: -w 1 -c 2 -H localhost
- name: test3
params: -I 127.0.0.1
- name: test4
params: -E -H localhost"
juju set apache2 nagios_
The automated tests did not pass for this charm. The readme indicates that some additional packages are required for testing this charm. That is precisely what the tests/00-setup script is for. You install the packages needed for the testing of the charm. Even after I installed those packages the amulet tests failed. It would be great if you could take a look at these tests and update them so this charm passes automated testing. This would really help the charm's overall quality.
The automated testing uses the bundletester tool which can be pip installed: /github. com/juju- solutions/ bundletester
https:/
You can run the bundletester from the charm directory. I ran the command like this:
bundletester -F -e amazon -l DEBUG -v
I am going to put this proposal in “Work in progress”, please put it back in “Needs review” when you have added more information in the readme for the new configuration option you are adding, and hopefully have fixed the tests to run. Thanks for your effort here. If you have any other questions please feel free to contact me in #juju or on the Juju mailing list.