Closed peterberenyi closed 4 years ago
Can you please run the plugin with the -d
option and post the output?
Here you go. --ber
[root@RHEL7-template ~]# /usr/lib64/nagios/plugins/check_updates -d -t 120 -w 1 -c 2; echo $? [DBG] Updater: yum [DBG] Running "/bin/yum check-update --assumeno -q 2>&1" [DBG] Update notice RHSA-2019:3193 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping. [DBG] You should report this problem to the owner of the rhel-7-server-rpms repository. [DBG] If you are the owner, consider re-running the same command with --verbose to see the exact data that caused the conflict. [DBG] Running "/bin/yum check-update --assumeno -q --security 2>&1 2>&1" [DBG] Update notice RHSA-2019:3193 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping. [DBG] You should report this problem to the owner of the rhel-7-server-rpms repository. [DBG] If you are the owner, consider re-running the same command with --verbose to see the exact data that caused the conflict. CHECK_UPDATES CRITICAL - 3 security updates available | total_updates=3;1;2 security_updates=3;1;2 Update (security) You (security) If (security) 2
Berényi Péter Informatikai Igazgatóság Linux rendszergazda [cid:image001.png@01D1189A.9FCD5800] Cím: 1125 Budapest, Alkotás út 17-19. E-mail: berenyi.peter@aeek.humailto:berenyi.peter@aeek.hu https://aeek.hu
From: Matteo Corti notifications@github.com Sent: Wednesday, March 11, 2020 10:36 PM To: matteocorti/check_updates check_updates@noreply.github.com Cc: Berényi Péter berenyi.peter@aeek.hu; Author author@noreply.github.com Subject: Re: [matteocorti/check_updates] check_updates misbehaves on RHEL 7 (#31)
Can you please run the plugin with the -d option and post the output?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/matteocorti/check_updates/issues/31#issuecomment-597889895, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZT4DD7AQJETWPEVOQCYMDRG774XANCNFSM4LF6QZYA.
Ezen üzenet és annak bármely csatolt anyaga bizalmas, jogi védelem alatt áll, a nyilvános közléstől védett. Az üzenetet kizárólag a címzett, illetve az általa meghatalmazottak használhatják fel. Ha Ön nem az üzenet címzettje, úgy kérjük, hogy telefonon, vagy e-mail-ben értesítse erről az üzenet küldőjét és törölje az üzenetet, valamint annak összes csatolt mellékletét a rendszeréből. Ha Ön nem az üzenet címzettje, abban az esetben tilos az üzenetet vagy annak bármely csatolt mellékletét lemásolnia, elmentenie, az üzenet tartalmát bárkivel közölnie vagy azzal visszaélnie.
This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.
Thanks, you are using an older version. The problem should be solved in the latest version.
It comes from EPEL (Extra Packages for Enterprise Linux 7). If you would put the new version to that distro, the issue would resolve itself. The last update (with said consequences) was on 2020-01-31. --ber
[root@RHEL7-template ~]# yum info nagios-plugins-check-updates Loaded plugins: post-transaction-actions, product-id, search-disabled-repos, subscription-manager Installed Packages Name : nagios-plugins-check-updates Arch : x86_64 Version : 1.7.8 Release : 2.el7 Size : 90 k Repo : installed From repo : epel Summary : A Nagios plugin to check if Red Hat or Fedora system is up-to-date URL : https://github.com/matteocorti/check_updates License : GPLv3+ Description : A Nagios plugin to check if Red Hat or Fedora system is up-to-date.
[root@RHEL7-template ~]# grep nagios-plugins-check-updates /var/log/yum.log Jan 31 04:43:46 Updated: nagios-plugins-check-updates.x86_64 1.7.8-2.el7
Berényi Péter Informatikai Igazgatóság Linux rendszergazda [cid:image001.png@01D1189A.9FCD5800] Cím: 1125 Budapest, Alkotás út 17-19. E-mail: berenyi.peter@aeek.humailto:berenyi.peter@aeek.hu https://aeek.hu
From: Matteo Corti notifications@github.com Sent: Thursday, March 12, 2020 8:09 AM To: matteocorti/check_updates check_updates@noreply.github.com Cc: Berényi Péter berenyi.peter@aeek.hu; Author author@noreply.github.com Subject: Re: [matteocorti/check_updates] check_updates misbehaves on RHEL 7 (#31)
Thanks, you are using an older version. The problem should be solved in the latest version.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/matteocorti/check_updates/issues/31#issuecomment-598038837, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZT4DDGO7FBJZT22JMJCC3RHCDA5ANCNFSM4LF6QZYA.
Ezen üzenet és annak bármely csatolt anyaga bizalmas, jogi védelem alatt áll, a nyilvános közléstől védett. Az üzenetet kizárólag a címzett, illetve az általa meghatalmazottak használhatják fel. Ha Ön nem az üzenet címzettje, úgy kérjük, hogy telefonon, vagy e-mail-ben értesítse erről az üzenet küldőjét és törölje az üzenetet, valamint annak összes csatolt mellékletét a rendszeréből. Ha Ön nem az üzenet címzettje, abban az esetben tilos az üzenetet vagy annak bármely csatolt mellékletét lemásolnia, elmentenie, az üzenet tartalmát bárkivel közölnie vagy azzal visszaélnie.
This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.
I just develop the plugin and publish it. I am not responsible for EPEL. You should contact the package maintainer.
Thanks. 1.7.9 is already in epel-testing, it will make its way up, sooner or later. Case closed. --ber
Available Packages Name : nagios-plugins-check-updates Arch : x86_64 Version : 1.7.9 Release : 1.el7 Size : 39 k Repo : epel-testing/x86_64 Summary : A Nagios plugin to check if Red Hat or Fedora system is up-to-date URL : https://github.com/matteocorti/check_updates License : GPLv3+ Description : A Nagios plugin to check if Red Hat or Fedora system is up-to-date.
Berényi Péter Informatikai Igazgatóság Linux rendszergazda [cid:image001.png@01D1189A.9FCD5800] Cím: 1125 Budapest, Alkotás út 17-19. E-mail: berenyi.peter@aeek.humailto:berenyi.peter@aeek.hu https://aeek.hu
From: Matteo Corti notifications@github.com Sent: Thursday, March 12, 2020 8:27 AM To: matteocorti/check_updates check_updates@noreply.github.com Cc: Berényi Péter berenyi.peter@aeek.hu; Author author@noreply.github.com Subject: Re: [matteocorti/check_updates] check_updates misbehaves on RHEL 7 (#31)
I just develop the plugin and publish it. I am not responsible for EPEL. You should contact the package maintainer.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/matteocorti/check_updates/issues/31#issuecomment-598044411, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZT4DGLBGZV6XP4S3WZ22LRHCFERANCNFSM4LF6QZYA.
Ezen üzenet és annak bármely csatolt anyaga bizalmas, jogi védelem alatt áll, a nyilvános közléstől védett. Az üzenetet kizárólag a címzett, illetve az általa meghatalmazottak használhatják fel. Ha Ön nem az üzenet címzettje, úgy kérjük, hogy telefonon, vagy e-mail-ben értesítse erről az üzenet küldőjét és törölje az üzenetet, valamint annak összes csatolt mellékletét a rendszeréből. Ha Ön nem az üzenet címzettje, abban az esetben tilos az üzenetet vagy annak bármely csatolt mellékletét lemásolnia, elmentenie, az üzenet tartalmát bárkivel közölnie vagy azzal visszaélnie.
This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.
Nah, version 1.7.9 is still not good. --ber
[root@RHEL7-template ~]# /usr/lib64/nagios/plugins/check_updates -V check_updates 1.7.9 [https://github.com/matteocorti/check_updates] [root@RHEL7-template ~]# /usr/lib64/nagios/plugins/check_updates -d -t 120 -w 1 -c 2; echo $? [DBG] Updater: yum [DBG] Running "/bin/yum check-update --assumeno --errorlevel=0 -q 2>&1" [DBG] Update notice RHSA-2019:3193 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping. [DBG] You should report this problem to the owner of the rhel-7-server-rpms repository. [DBG] If you are the owner, consider re-running the same command with --verbose to see the exact data that caused the conflict. [DBG] Running "/bin/yum check-update --assumeno --errorlevel=0 -q --security 2>&1 2>&1" [DBG] Update notice RHSA-2019:3193 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping. [DBG] You should report this problem to the owner of the rhel-7-server-rpms repository. [DBG] If you are the owner, consider re-running the same command with --verbose to see the exact data that caused the conflict. CHECK_UPDATES CRITICAL - 3 security updates available | total_updates=3;1;2 security_updates=3;1;2 Update (security) You (security) If (security) 2 [root@RHEL7-template ~]# yum info nagios-plugins-check-updates Loaded plugins: post-transaction-actions, product-id, search-disabled-repos, subscription-manager Installed Packages Name : nagios-plugins-check-updates Arch : x86_64 Version : 1.7.9 Release : 1.el7 Size : 90 k Repo : installed From repo : epel-testing Summary : A Nagios plugin to check if Red Hat or Fedora system is up-to-date URL : https://github.com/matteocorti/check_updates License : GPLv3+ Description : A Nagios plugin to check if Red Hat or Fedora system is up-to-date.
[root@RHEL7-template ~]# yum update Loaded plugins: post-transaction-actions, product-id, search-disabled-repos, subscription-manager No packages marked for update
Berényi Péter Informatikai Igazgatóság Linux rendszergazda [cid:image001.png@01D1189A.9FCD5800] Cím: 1125 Budapest, Alkotás út 17-19. E-mail: berenyi.peter@aeek.humailto:berenyi.peter@aeek.hu https://aeek.hu
From: Berényi Péter Sent: Thursday, March 12, 2020 10:09 AM To: 'matteocorti/check_updates' reply@reply.github.com Subject: RE: [matteocorti/check_updates] check_updates misbehaves on RHEL 7 (#31)
Thanks. 1.7.9 is already in epel-testing, it will make its way up, sooner or later. Case closed. --ber
Available Packages Name : nagios-plugins-check-updates Arch : x86_64 Version : 1.7.9 Release : 1.el7 Size : 39 k Repo : epel-testing/x86_64 Summary : A Nagios plugin to check if Red Hat or Fedora system is up-to-date URL : https://github.com/matteocorti/check_updates License : GPLv3+ Description : A Nagios plugin to check if Red Hat or Fedora system is up-to-date.
Berényi Péter Informatikai Igazgatóság Linux rendszergazda [cid:image001.png@01D1189A.9FCD5800] Cím: 1125 Budapest, Alkotás út 17-19. E-mail: berenyi.peter@aeek.humailto:berenyi.peter@aeek.hu https://aeek.hu
From: Matteo Corti notifications@github.com<mailto:notifications@github.com> Sent: Thursday, March 12, 2020 8:27 AM To: matteocorti/check_updates check_updates@noreply.github.com<mailto:check_updates@noreply.github.com> Cc: Berényi Péter berenyi.peter@aeek.hu<mailto:berenyi.peter@aeek.hu>; Author author@noreply.github.com<mailto:author@noreply.github.com> Subject: Re: [matteocorti/check_updates] check_updates misbehaves on RHEL 7 (#31)
I just develop the plugin and publish it. I am not responsible for EPEL. You should contact the package maintainer.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/matteocorti/check_updates/issues/31#issuecomment-598044411, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZT4DGLBGZV6XP4S3WZ22LRHCFERANCNFSM4LF6QZYA.
Ezen üzenet és annak bármely csatolt anyaga bizalmas, jogi védelem alatt áll, a nyilvános közléstől védett. Az üzenetet kizárólag a címzett, illetve az általa meghatalmazottak használhatják fel. Ha Ön nem az üzenet címzettje, úgy kérjük, hogy telefonon, vagy e-mail-ben értesítse erről az üzenet küldőjét és törölje az üzenetet, valamint annak összes csatolt mellékletét a rendszeréből. Ha Ön nem az üzenet címzettje, abban az esetben tilos az üzenetet vagy annak bármely csatolt mellékletét lemásolnia, elmentenie, az üzenet tartalmát bárkivel közölnie vagy azzal visszaélnie.
This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.
Hi thanks for the info. It seems that even with --errorlevel=0 -q
the plugin is generating too much output.
Can you please run /bin/yum check-update --assumeno --errorlevel=0 -q
and post the output?
Here it is. --ber
[root@RHEL7-template ~]# /bin/yum check-update --assumeno --errorlevel=0 -q Update notice RHSA-2019:3193 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping. You should report this problem to the owner of the rhel-7-server-rpms repository. If you are the owner, consider re-running the same command with --verbose to see the exact data that caused the conflict.
'1'
rhel-7-server-optional-rpms:version Update notice RHSA-2019:3193 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping. You should report this problem to the owner of the rhel-7-server-rpms repository. If you are the owner, consider re-running the same command with --verbose to see the exact data that caused the conflict. updateinfo time: 4.232
Peter Berenyi Linux SysAdmin AEEK IT
From: Matteo Corti notifications@github.com Sent: Thursday, March 12, 2020 12:50 PM To: matteocorti/check_updates check_updates@noreply.github.com Cc: Berényi Péter berenyi.peter@aeek.hu; Author author@noreply.github.com Subject: Re: [matteocorti/check_updates] check_updates misbehaves on RHEL 7 (#31)
Hi thanks for the info. It seems that even with --errorlevel=0 -q the plugin is generating too much output.
Can you please run /bin/yum check-update --assumeno --errorlevel=0 -q and post the output?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/matteocorti/check_updates/issues/31#issuecomment-598144576, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZT4DBRI3SZ4GRY2LFKNILRHDD4ZANCNFSM4LF6QZYA.
Ezen üzenet és annak bármely csatolt anyaga bizalmas, jogi védelem alatt áll, a nyilvános közléstől védett. Az üzenetet kizárólag a címzett, illetve az általa meghatalmazottak használhatják fel. Ha Ön nem az üzenet címzettje, úgy kérjük, hogy telefonon, vagy e-mail-ben értesítse erről az üzenet küldőjét és törölje az üzenetet, valamint annak összes csatolt mellékletét a rendszeréből. Ha Ön nem az üzenet címzettje, abban az esetben tilos az üzenetet vagy annak bármely csatolt mellékletét lemásolnia, elmentenie, az üzenet tartalmát bárkivel közölnie vagy azzal visszaélnie.
This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.
The bug is now clear. The plugin considers these three error lines
Update notice RHSA-2019:3193 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping.
You should report this problem to the owner of the rhel-7-server-rpms repository.
If you are the owner, consider re-running the same command with --verbose to see the exact data that caused the conflict.
as three packages :-)
I can filter them but I cannot guarantee that YUM will generate something new in the future.
Is it 1.7.10 or 1.8.0? --ber
Peter Berenyi Linux SysAdmin AEEK IT
From: Matteo Corti notifications@github.com Sent: Thursday, March 12, 2020 1:15 PM To: matteocorti/check_updates check_updates@noreply.github.com Cc: Berényi Péter berenyi.peter@aeek.hu; Author author@noreply.github.com Subject: Re: [matteocorti/check_updates] check_updates misbehaves on RHEL 7 (#31)
Closed #31https://github.com/matteocorti/check_updates/issues/31 via dbefdadhttps://github.com/matteocorti/check_updates/commit/dbefdadf9773f6352068d355ea429501e86fdd1d.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/matteocorti/check_updates/issues/31#event-3122581584, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZT4DBC4IYRI47OV46EPHDRHDG5BANCNFSM4LF6QZYA.
Ezen üzenet és annak bármely csatolt anyaga bizalmas, jogi védelem alatt áll, a nyilvános közléstől védett. Az üzenetet kizárólag a címzett, illetve az általa meghatalmazottak használhatják fel. Ha Ön nem az üzenet címzettje, úgy kérjük, hogy telefonon, vagy e-mail-ben értesítse erről az üzenet küldőjét és törölje az üzenetet, valamint annak összes csatolt mellékletét a rendszeréből. Ha Ön nem az üzenet címzettje, abban az esetben tilos az üzenetet vagy annak bármely csatolt mellékletét lemásolnia, elmentenie, az üzenet tartalmát bárkivel közölnie vagy azzal visszaélnie.
This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.
Sorry my mistake. As it is a bug fix it's 1.7.10. I committed the correction and released a tarball
[root@RHEL7-template ~]# /usr/lib64/nagios/plugins/check_updates -t 120 -w 1 -c 2; echo $? CHECK_UPDATES CRITICAL - 3 security updates available | total_updates=3;1;2 security_updates=3;1;2 Update (security) You (security) If (security) 2 [root@RHEL7-template ~]# yum update Loaded plugins: post-transaction-actions, product-id, search-disabled-repos, subscription-manager No packages marked for update [root@RHEL7-template ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.7 (Maipo)