Anyone had success with SNMP and reboot required state
Hi Forums
I wanted to hear if anyone have had success with reboot pending with LogicMonitor and SNMP?
Mainly SNMPD on Ubuntu.
Else it maybe a job for SSH monitoring or OpenMetrics with Telegraf?
spiritie
7 comments
spiritie
OPHi Stuart
Thanks for your insight :)/emoticons/smile@2x.png 2x" title=":)" width="20" />
I think we will wait with the SSH monitoring, we have a lot of machines where we disable SSH as a security measure and only enabled it during maintenance.
We want to try go the OpenMetrics way instead :)/emoticons/smile@2x.png 2x" title=":)" width="20" />
LM User
Yes, many of the SSH datasources available out of the box provide superior monitoring and detail vs. the SNMP data that is pollable.
Almost. There's more SNMP monitoring that happens on Linux than Windows, because Windows has WMI that, like SSH, provides richer monitoring data.
Also, just because you enable SSH monitoring, doesn't mean you're necessarily disabling SNMP monitoring. Do both.
spiritie
OPFrom what I've understood there is more broad monitoring with SNMP on Linux machines with LogicMonitor?
Is there something particular with the SSH monitoring that is superior than the SNMP monitoring (talking out of the box in LogicMonitor)
LM User
Enabling ssh would get you much more than just this one custom datasource. Worth looking into IMO.
Mike Moniz
You can extend snmpd to run custom script but that would still require modifying each server's snmpd config.
https://net-snmp.sourceforge.io/wiki/index.php/Tut:Extending_snmpd_using_shell_scripts
spiritie
OPYeah, it's easy with SSH, we already have a bash script that can check reboot status of a Linux machine, but we'd like to avoid using SSH as we only use SNMP right now.
Quite a lot of work to set up SSH on all devices just to have this ekstra reboot pending check
LM User
Should be a pretty easy one to do with SSH. https://megamorf.gitlab.io/2019/06/10/check-if-reboot-is-required-after-installing-linux-updates/ I'd suggest doing it as a property source so you can just put them into a group based on the property. Something like this (not extensively tested).
If you want alerts, you could alert off this property pretty easily with a companion datasource that looks like this:
With an appliesto like this:
auto.pending.reboot == "needed"