Nagios Bug and Feature Tracker
Bug and Feature Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000303 [Nagios Plugins] Other / Unknown tweak always 2012-03-19 07:57 2012-09-18 09:12
Reporter calestyo View Status public  
Assigned To
Priority normal Resolution open  
Status closed  
Summary 0000303: improve default APT options for check_apt
Description Hi.

check_apt uses the following default options:
on update:
-q

on upgrade:
-o 'Debug::NoLocking=true' -s -qq

The former seems fine to me, but think (maybe I'm wrong), the later can be improved:

a) -s
I've just reported bug 0000302, where I suggest, that IMHO check_apt shouldn't upgrade per default, but JUST check (even not doing an update).
If this was the case, than we could just drop "-s".
A user typically _want_s the upgrade if he says -U or -D,.. or at least a notice if it failed (cause he wasn't root).
Right now, he does not even get that info, right?


b) I'd generally omit -o 'Debug::NoLocking=true'
According to the apt-get manual page, simulation (-s) enables "Debug::NoLocking=true" for non-root users anyway and AS a root user,.. one probably wants the locking.


c) I'm unsure about -qq
The apt-get manual page, specifically warns:
>you should never use -qq without a no-action modifier such as
>-d, --print-uris or -s as APT may decided to do something you
>did not expect.

If (a) above would be accepted, than we'd no longer fulfil this, as "-s" was gone.
What should we do then? Just "-q".


Cheers,
Chris

btw: I'd write patches if the ideas themselves were accepted.
Additional Information
Tags No tags attached.
OS
OS Version
Attached Files

- Relationships

-  Notes
(0000500)
calestyo (reporter)
2012-07-01 15:45

The proposals as described above were partially invalid.
I corrected them and forwarded it to:
https://sourceforge.net/tracker/index.php?func=detail&aid=3539330&group_id=29880&atid=397597 [^]

Please close the issue here.

- Issue History
Date Modified Username Field Change
2012-03-19 07:57 calestyo New Issue
2012-07-01 15:45 calestyo Note Added: 0000500
2012-09-18 09:12 ageric Status new => closed


Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker