Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Call to set instant Maintenance mode #13237

Merged

Conversation

SourceDoctor
Copy link
Member

Set a device instant into Maintenance Mode via API Call

Please read this information carefully. You can run ./lnms dev:check to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

@librenms-bot
Copy link

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/scheduling-maintenance-via-api/9517/10

@SourceDoctor SourceDoctor changed the title API Call to set instance Maintenance mode API Call to set instant Maintenance mode Sep 13, 2021
@murrant
Copy link
Member

murrant commented Sep 24, 2021

@SourceDoctor test that. I removed several unnecessary queries.

@SourceDoctor
Copy link
Member Author

@murrant ?

@murrant
Copy link
Member

murrant commented Sep 28, 2021

@SourceDoctor your code merge broke things :) I think I fixed it.

@SourceDoctor SourceDoctor merged commit 708d1eb into librenms:master Sep 28, 2021
@murrant murrant added the API label Sep 29, 2021
@librenms-bot
Copy link

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/21-10-0-changelog/17124/1

eskyuu pushed a commit to eskyuu/librenms that referenced this pull request Oct 21, 2021
* API Call to set instance Maintenance mode

* .

* remove unused code

* update query

* Use recent code

* remove accidental line return

* fix duration in success string

* style fix

* Try to fix bad code merge

Co-authored-by: Tony Murray <murraytony@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants