Bug 1138943
| Summary: | [Nagios] - Discovery.py does not check for the correctness of nagios configuration before restarting nagios service | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | RamaKasturi <knarra> |
| Component: | nagios-server-addons | Assignee: | Ramesh N <rnachimu> |
| Status: | CLOSED ERRATA | QA Contact: | RamaKasturi <knarra> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.0 | CC: | asrivast, dpati, psriniva, rhsc-qe-bugs, rnachimu, sharne |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | RHGS 3.0.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | nagios-server-addons-0.1.7-1.el6rhs | Doc Type: | Bug Fix |
| Doc Text: |
Previously, the auto-config service tried to restart the Nagios service though there was a configuration error. As a result, auto-config service reported a message: "restarted nagios successfully", though the Nagios service was not running. With this fix, changes are made to check the configuration before restarting Nagios service.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-01-15 13:49:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1087818 | ||
|
Description
RamaKasturi
2014-09-06 15:43:40 UTC
We can run 'nagios -v /etc/nagios/nagios.cfg' to check the correctness of the nagios configuration before restarting the Nagios. Upstream patch http://review.gluster.org/#/c/8131/ will address this use case. Fixed in upstream patch http://review.gluster.org/#/c/8131/. Please review and sign-off edited doc text. The discovery.py script does not check the correctness of the nagios configuration (syntax check).So nagios restart may fail if there is some config error in the nagios configuration. Its not specific to email configuration, but for the any nagois configuration. Note: I don't think accuracy is the right word here. We cann't verify the accuracy like verifying the correctness of email address by sending mail. From kanagaraj, i understand that these bugs have been moved to on_qa by errata. Since QE has not yet received the build i am moving this bug back to assigned state. Please move it on to on_qa once builds are attached to errata. Verified and works fine with build nagios-server-addons-0.1.8-1.el6rhs.noarch When discovery.py is run and when email and snmp configs are not proper it says "CONFIG ERROR ! Check your Nagios configuration". Hi Ramesh, Can you please review the edited doc text for technical accuracy and sign off? Doc text looks good to me Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0039.html |