[ nagiosplug-Bugs-3539328 ] check_apt: clarify that it doesn't upgrade per default

SourceForge.net <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
Bugs item #3539328, was opened at 2012-07-01 12:27
Message generated for change (Comment added) made by calestyo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3539328&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface (example)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Cálestyo (calestyo)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_apt: clarify that it doesn't upgrade per default

Initial Comment:
(Roughly) From: http://tracker.nagios.org/view.php?id=302

Hi.

check_apt uses its "--upgrade" option per default:
 -U, --upgrade=OPTS
    [Default] Perform an upgrade. If an optional OPTS argument is provided,
    apt-get will be run with these command line options instead of the
    default (-o 'Debug::NoLocking=true' -s -qq).
    Note that you may be required to have root privileges if you do not use
    the default options.

I was quite confused by this, given the meanings of upgrade (install new packages) and update (get information about new packages) in Debian.

The following seems to be true:
- Using the upgrade mode in APT (and therefore the --upgrade option to the plugin) is really required, even to just get a list of upgradable packages.
So this really needs to be the default.
- No upgrades (in the sense of installing packags) are however executed, given the options  (-o 'Debug::NoLocking=true' -s -qq). This is true for both, normal users (obviously) and root.


In order to clear things up, I'd suggest to add a notes that:
- the --upgrade option of the plugins (with it's default OPTS) doesn't do package upgrades (in the sense of installing new ones), neither as root nor as normal user.

and optionally:
- the --update option (and upgrade mode of APT) is needed even to just get a list of upgradable pacakges.


Cheers,
Chris.

----------------------------------------------------------------------

>Comment By: Cálestyo (calestyo)
Date: 2012-07-01 12:46

Message:
I would write the patches, if the ideas themselves are accepted.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3539328&group_id=29880

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________________
Nagios Plugin Development Mailing List [email protected]
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.