Closed dmyerscough closed 11 years ago
Thank you so much for submitting this! This is awesome; I had never considered parsing the Nagios configuration file. That's brilliant. :)
I made some comments -- I'd love if you could update the PR and then I'll get this merged in!
Thanks for the feedback :+1:
I have added in a feature to allow Nagios to be reloaded, this will come in handy when I write the functionality to add and remove hosts dynamically.
Hey -- pull requests should be for small units of functionality. Can you please split this into 2 or 3? For one, the template functionality should be disentangled from the change/addition of the problem state functionality. Any other major changes should be in a separate PR too.
This helps minimize the time-to-merge and review time. I would merge the problem stuff right now, but I don't want to merge the template stuff yet without discussion, and I don't want to hold up the former on the latter. Make sense?
Sorry Mark, I am a little new to Github. I will have a look at only submitting a small patch,
Mark, are you able to merge the other functionality prior to the template and Nagios reload feature? I have looked around and I can't find a good way to submit changes prior without resetting HEAD and then issuing a pushing.
Generally, people will create several branches -- one for each feature they want to make. Then, you submit a pull request from each branch. That works best if they're separate features and one does not depend on the other.
What I would recommend here is:
git branch BRANCH_NAME
.git diff
) from the old repositoryThis will let you separate the diffs and the commits onto two (or three, whatever you need) separate branches. Then you can create two or three pull requests and I can merge/discuss them individually.
If you're on Freenode, you can find me there as xb95
and I'd be happy to walk you through this real-time!
Thanks xb95.
Hello Mark, I have added a new state that displays all services that are having problems and have allowed users to specify the nagios.cfg file to pull the status.dat, command file and nagios log locations.
Cool project by the way.