Bug 118871 - add initscript to enable/disable running mrtg in cron job
Summary: add initscript to enable/disable running mrtg in cron job
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mrtg
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-22 04:11 UTC by Charles R. Anderson
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-17 06:57:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
mrtg initscript (1.16 KB, text/plain)
2004-03-24 02:09 UTC, Charles R. Anderson
no flags Details
mrtg cronjob (85 bytes, text/plain)
2004-03-24 02:10 UTC, Charles R. Anderson
no flags Details

Description Charles R. Anderson 2004-03-22 04:11:31 UTC
Description of problem:

In a default install, mrtg is set to run from /etc/cron.d/mrtg.  This
makes little sense until the admin sets up mrtg.

Version-Release number of selected component (if applicable):

Expected results:

Provide an initscript /etc/rc.d/init.d/mrtg (default to off) which
just toggles /var/lock/subsys/mrtg, and enhance /etc/cron.d/mrtg to
check for the existence of /var/lock/subsys/mrtg before running mrtg.

Additional info:

Comment 1 Bill Nottingham 2004-03-23 02:43:32 UTC
How about just checking that it's configured and having the cron job
just exit?

Comment 2 Charles R. Anderson 2004-03-24 02:08:14 UTC
Checking that it is configured would be tricky.  /etc/mrtg/mrtg.conf
is shipped by default, and there is no easy way to tell if that file
is "configured".  Yum uses the cronjob-check-subsys method.  It would
be nice if the distro standardized on the same method.

Attaching proposed initscript and cron file, based on the ones from
the yum package.


Comment 3 Charles R. Anderson 2004-03-24 02:09:30 UTC
Created attachment 98814 [details]
mrtg initscript

Comment 4 Charles R. Anderson 2004-03-24 02:10:05 UTC
Created attachment 98815 [details]
mrtg cronjob

Comment 5 Miloslav Trmač 2004-08-17 06:57:06 UTC
Unlike yum, running unconfigured mrtg can do no harm.

mrtg is installed only if you explicitly select it in the interface,
in which case the administrator would probably prefer that it
"just works", or if you install 'Everything', in which case you
get what you deserve.


Note You need to log in before you can comment on or make changes to this bug.