1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00
Files
librenms-librenms-agent/snmp
Ives van der Flaas ba373fc2dc Add support for PhotonOS's tdnf. (#411)
Example output:

root [ /home/ives ]# tdnf -q check-update
Linux-PAM.x86_64                             1.4.0-5.ph4          photon-updates
cloud-init.noarch                           22.2.2-1.ph4          photon-updates
curl.x86_64                                 7.83.1-2.ph4          photon-updates
curl-libs.x86_64                            7.83.1-2.ph4          photon-updates
openssl.x86_64                               3.0.3-3.ph4          photon-updates

So a simple line count should suffice. Output of the script:

root [ /home/ives ]# /bin/docker-osupdate
5
2022-07-10 11:51:11 +02:00
..
2021-03-18 20:07:25 +01:00
2019-08-08 21:18:06 -05:00
2021-03-18 12:24:30 +01:00
2021-03-18 20:07:25 +01:00
2020-02-03 18:46:36 +01:00
2021-03-18 20:07:25 +01:00
2020-04-19 00:02:53 +02:00
2021-03-18 12:24:30 +01:00
2021-03-18 20:07:25 +01:00
2021-03-18 20:11:19 +01:00
2022-02-25 18:22:09 +01:00
2021-03-07 20:26:47 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 20:07:25 +01:00
2021-03-18 12:24:30 +01:00
2022-06-19 13:38:41 +02:00
2021-03-18 12:24:30 +01:00
2019-08-08 21:18:06 -05:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 20:07:25 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 20:07:25 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 20:07:25 +01:00
2021-10-24 21:01:40 +02:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00
2021-03-26 11:02:01 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 20:07:25 +01:00
2022-01-13 18:18:57 +01:00
2017-03-19 18:03:59 +00:00
2019-06-25 02:17:47 -05:00
2021-03-22 14:09:20 +01:00
2021-03-18 20:07:25 +01:00
2021-03-18 12:24:30 +01:00
2021-03-18 12:24:30 +01:00