Open wimg opened 3 years ago
why not enhance osupdate plugin with this? creating another OS Update Plugin makes no sense
why not enhance osupdate plugin with this? creating another OS Update Plugin makes no sense
I agree that might make more sense, but not all distros seem to have a reliable way of listing only security updates (apt-based for example seem to have an issue with this) and so modifying the entire osupdate plugin seemed a bit overkill.
Honestly I don't know librenms well enough to get started on that either.
osupdate Script returns a Number. fastest way would be to enhance this to a comma seperated list and second field stays "Null" if no Sequrity Update Count is possible.
I personaly would prefer a line of this value in existing OS Update graph. So you can see how many Update are open, and how many of them are Security Updates
take a look into smart Script to see an example
Not really sure why it was doing : echo $(($UPDATES-1)); in many places. With yum it's definitely not correct (unless you have some kind of problem with your setup), so I changed that to not do the -1.
2 things that are not working :
yeah updateing RRD is not such easy so do it in a separate RRD
you have to update osupdate Poller in LibreNMS also, so i splits by comma
yeah updateing RRD is not such easy so do it in a separate RRD
you have to update osupdate Poller in LibreNMS also, so i splits by comma
I did that, but the RRD is a problem of course. Will look into that later this week.
Very useful feature for us admins!!
Some Idea for APT
apt-get --just-print upgrade |awk '/standard security updates/ {print $1}'
@mpikzink seems to be usefull @wimg could you implemnt this also?
so apt and yum are supporting this feature ...
@wimg could you implemnt this also?
I will, once I get to it. Currently swamped with other things, so it will take up to a few weeks.
Any news here? I am already waiting eagerly for the PR :-)
After using it for a while, we disabled it. It's often causing timeouts on SNMP, so I wouldn't recommend anything like this. Sadly it seems there won't be a PR coming anymore from us, since it's causing too many problems. It might be best to look for an alternative solution.
After using it for a while, we disabled it. It's often causing timeouts on SNMP, so I wouldn't recommend anything like this. Sadly it seems there won't be a PR coming anymore from us, since it's causing too many problems. It might be best to look for an alternative solution.
There is a easy fix for this. Run it via cron every 5 minutes every so often and dump the output to a file. Then just have snmpd cat that file.
Sneck, Opensearch, and several of mine require something similar to this as there is a the likely hood of them completing in a timely manner is very unlikely.
Adds OS Security updates, useful when managing tons of servers to avoid notification fatigue caused by non-stop updates of packages. This way, security updates can be placed in a rule separately from standard os updates.
Submitted the librenms repo part in https://github.com/librenms/librenms/pull/13117