matteocorti / nagios_plugins

18 stars 7 forks source link

--security-only fails because of terminal width cols #122

Closed matteocorti closed 8 years ago

matteocorti commented 8 years ago

Original reporter: anonymous

check_updates with --security-only fails on my rhel 6.4 system.

run_yum checks with an regex if the security plugin is loaded, this fails when the Loaded plugins line is longer than 80 cols as yum splits the line up into two separate lines.

e.g.:

yum check-update
Loaded plugins: changelog, fastestmirror, product-id, protectbase, rhnplugin,
              : security

========== comment

You fix works for me. Just install a lot of yum plugins if you want to test it yourself. ps. I cant seem to be able to make a 'comment' on this ticket, thats why i comment inline.

Piotr Popieluch

matteocorti commented 8 years ago

Original reporter: matteo@corti.li

I just committed a new version (r1337). I was not able to force my terminal to shrink (even with stty). Could you please test the fix on your system and tell me if it works?

svn co https://svn.id.ethz.ch/nagios_plugins/check_updates

perl Makefile.PL

Many thanks

Matteo

matteocorti commented 8 years ago

This issue was moved to matteocorti/check_updates#4