Skip to content

add Sneck support, making it very trivial to use Nagios style checks in a NRPE like manner#13954

Merged
electrocret merged 72 commits intolibrenms:masterfrom
VVelox:sneck
Jun 15, 2023
Merged

add Sneck support, making it very trivial to use Nagios style checks in a NRPE like manner#13954
electrocret merged 72 commits intolibrenms:masterfrom
VVelox:sneck

Conversation

@VVelox
Copy link
Copy Markdown
Contributor

@VVelox VVelox commented Apr 27, 2022

Sneck is basically NRPE over SNMP.

This means one can easily throw what ever checks on the VM/server/etc when provisioning and poll it via SNMP and get everything there with out having to know what has been setup to poll it.

It tracks totals for each server.

Any found alerts are reported on the application page and stay there until told to clear it.

Screenshots...

graphs, no alert
graphs, alert
alert via example

DO NOT DELETE THE UNDERLYING TEXT

Please note

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.
  • If my Pull Request makes discovery/polling/yaml changes, I have added/updated test data.

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.

@VVelox VVelox changed the title add Sneck support, making it very trivial to use Nagious style checks in a NRPE manner add Sneck support, making it very trivial to use Nagios style checks in a NRPE manner May 5, 2022
@VVelox VVelox changed the title add Sneck support, making it very trivial to use Nagios style checks in a NRPE manner add Sneck support, making it very trivial to use Nagios style checks in a NRPE like manner May 5, 2022
@VVelox VVelox marked this pull request as draft May 10, 2022 16:27
@VVelox
Copy link
Copy Markdown
Contributor Author

VVelox commented May 10, 2022

Converting to draft, want to redo a few things in regards to how alerting is handled.

@VVelox
Copy link
Copy Markdown
Contributor Author

VVelox commented May 10, 2022

Specifically unhappy with how you can act it, alert can change but it will remain act.

Also need to look up at not updating the component when there is no meaningful change.

@Jellyfrog Jellyfrog added Applications 💾 Alert Rule Alert Rule in Collection labels Feb 22, 2023
@VVelox VVelox closed this Jun 11, 2023
@VVelox VVelox reopened this Jun 11, 2023
@electrocret electrocret merged commit 5da8e70 into librenms:master Jun 15, 2023
@librenms-bot
Copy link
Copy Markdown

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

https://community.librenms.org/t/23-6-0-changelog/21693/1

TheMysteriousX pushed a commit to TheMysteriousX/librenms that referenced this pull request Aug 9, 2023
…in a NRPE like manner (librenms#13954)

* code stuff done for Sneck

* whoops, correct the abs value post adding it post rrd update

* return a array for getting the sneck data and nicely print the raw return value

* add test stuff and freeze time at 1650911765 for tests

* move the freezeTime

* add use Illuminate\Support\Carbon;

* more test changes

* rework freezeTime a bit more

* more test stuff

* another test

* rework it a bit again

* correct variable spelling for $time_diff

* remove freezeTime as we are using a old version of Laravel

* finalize graphs

* misc

* finalize sneck page

* mve the sneck tests as it needs a newer version of laravel than we are using

* add documents for sneck

* finalize the poller

* formatting cleanup

* correct comment type

* correct the spelling of description

* more documentation

* save the check returns as metrics

* add some more examples

* fix some of the sneck alerts and add a few more examples

* turn off time to polling by default

* suggest using ntp if enabled

* since we are zeroing time_to_polling by default, this now works

* backout some suggested changes for once we change to larval 9

* remove del_sneck_data as it is no longer used

* add more docs on the metrics

* php-cs-fixer to fix a few things

* update and fix sneck tests

* remote a metric from the test

* another minor tweak to the test

* one more minor change

* ahh! derp! think I found it finally... hopefully hanging this for the last time...

* now use app data

* now logs check changes

* add a missing )

* add a missing )

* some style fixes

* update the sneck page use to the app data stuff

* update the poller to use the new app data

* misc

* update sneck to log check status changes

* correct alert log messages

* correct a comment

* fix metrics

* derp, another fix

* test fix

* re-order to avoid warning

* poller update

* update sneck graphs

* update sneck graphs

* remove a unneeded line

* test update for discovery

* minor tweaks to the test and fix update the polling a bit

* style fix

* fix return data printing

* fix the test data to include app data

* attempted test fix

* add config def to apps.sneck.polling_time_diff

* cleanup docs a bit

* minor config tweaks

* minor doc cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Alert Rule Alert Rule in Collection Applications 💾

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants