Project

General

Profile

Actions

User story #6580

open

Cron technique: add an option to support "prevent cron from writing a syslog message about this command getting executed" option

User story #6580: Cron technique: add an option to support "prevent cron from writing a syslog message about this command getting executed" option

Added by Florian Heigl over 10 years ago. Updated almost 8 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Techniques
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Hi,

I found the cron standard rudder technique has problems with more complex time specifications.

The literal example for testing follows:

#activity reports every 10 minutes everyday
-*/10 * * * * root /usr/lib64/sa/sa1
#update reports every 6 hours
0 */6 * * * root /usr/lib64/sa/sa2 -A

No biggie but I think at some point the validation here needs to be reviewed.


Files

rudder_cron.jpg (88.3 KB) rudder_cron.jpg Florian Heigl, 2015-05-12 17:46
rudder_cron.jpg

Updated by Benoît PECCATTE over 10 years ago Actions #1

Sorry, I don't understand where the problem lies.
What doesn't work with your example ?

Updated by Florian Heigl over 10 years ago Actions #2

rudder_cron.jpg

Hi Benoit,

it'll produce following error:

'Please modify Manually defined frequency to match the requested format : Please enter a valid cron interval'[[]]

Updated by Florian Heigl over 10 years ago Actions #3

Updated by Benoît PECCATTE over 10 years ago Actions #4

I didn't know the syntax -* what does it mean ?
I can't find it in the manual.

Updated by Florian Heigl over 10 years ago Actions #5

I also didn't know this one. I just knew it was working :)

docs say:
"If the uid of the owner is 0 (root), he can put a "-" as first character of a crontab entry. This will prevent cron from writing a syslog message about this command getting executed."
What a great feature for those spamming jobs.

crontab(5) for cron - daemon to execute scheduled commands (ISC Cron V4.1)

But even just using the */3 syntax seems to trip it.

Updated by Benoît PECCATTE over 10 years ago Actions #6

  • Category set to Techniques
  • Target version set to 2.10.14

oO
OK, but the */3 works for me.

Updated by Vincent MEMBRÉ over 10 years ago Actions #7

  • Target version changed from 2.10.14 to 2.10.15

Updated by Vincent MEMBRÉ over 10 years ago Actions #8

  • Target version changed from 2.10.15 to 2.10.16

Updated by Vincent MEMBRÉ over 10 years ago Actions #9

  • Target version changed from 2.10.16 to 2.10.17

Updated by Vincent MEMBRÉ over 10 years ago Actions #10

  • Target version changed from 2.10.17 to 2.10.18

Updated by Vincent MEMBRÉ about 10 years ago Actions #11

  • Target version changed from 2.10.18 to 2.10.19

Updated by Vincent MEMBRÉ about 10 years ago Actions #12

  • Target version changed from 2.10.19 to 2.10.20

Updated by Vincent MEMBRÉ about 10 years ago Actions #13

  • Target version changed from 2.10.20 to 277

Updated by Vincent MEMBRÉ about 10 years ago Actions #14

  • Target version changed from 277 to 2.11.18

Updated by Vincent MEMBRÉ almost 10 years ago Actions #15

  • Target version changed from 2.11.18 to 2.11.19

Updated by Vincent MEMBRÉ almost 10 years ago Actions #16

  • Target version changed from 2.11.19 to 2.11.20

Updated by Vincent MEMBRÉ almost 10 years ago Actions #17

  • Target version changed from 2.11.20 to 2.11.21

Updated by Vincent MEMBRÉ over 9 years ago Actions #18

  • Target version changed from 2.11.21 to 2.11.22

Updated by Vincent MEMBRÉ over 9 years ago Actions #19

  • Target version changed from 2.11.22 to 2.11.23

Updated by Vincent MEMBRÉ over 9 years ago Actions #20

  • Target version changed from 2.11.23 to 2.11.24

Updated by Vincent MEMBRÉ over 9 years ago Actions #21

  • Target version changed from 2.11.24 to 308

Updated by Vincent MEMBRÉ over 9 years ago Actions #22

  • Target version changed from 308 to 3.1.14

Updated by Vincent MEMBRÉ over 9 years ago Actions #23

  • Target version changed from 3.1.14 to 3.1.15

Updated by Vincent MEMBRÉ over 9 years ago Actions #24

  • Target version changed from 3.1.15 to 3.1.16

Updated by Vincent MEMBRÉ over 9 years ago Actions #25

  • Target version changed from 3.1.16 to 3.1.17

Updated by Vincent MEMBRÉ about 9 years ago Actions #26

  • Target version changed from 3.1.17 to 3.1.18

Updated by Vincent MEMBRÉ almost 9 years ago Actions #27

  • Target version changed from 3.1.18 to 3.1.19

Updated by Benoît PECCATTE almost 9 years ago Actions #28

  • Subject changed from cron technique to cron technique form input error

Updated by Jonathan CLARKE almost 9 years ago Actions #29

  • Tracker changed from Bug to User story
  • Subject changed from cron technique form input error to Cron technique: add an option to support "prevent cron from writing a syslog message about this command getting executed" option

Florian Heigl wrote:

I also didn't know this one. I just knew it was working :)

docs say:
"If the uid of the owner is 0 (root), he can put a "-" as first character of a crontab entry. This will prevent cron from writing a syslog message about this command getting executed."
What a great feature for those spamming jobs.

Wow, I had no idea that option existed. Nice find.

However, it is not actually related to the job frequency, so I think that it is correct that the Technique does not support it. I'm transforming this ticket into a user story so we can add an option to allow for this, it would be something like "Prevent cron from writing a syslog message about this command getting executed", that would add the "-" in front of the frequency, if the user is root.

But even just using the */3 syntax seems to trip it.

Confirmed, I just checked it and that works fine.

Updated by Vincent MEMBRÉ almost 9 years ago Actions #30

  • Target version changed from 3.1.19 to 3.1.20

Updated by Vincent MEMBRÉ over 8 years ago Actions #31

  • Target version changed from 3.1.20 to 3.1.21

Updated by Vincent MEMBRÉ over 8 years ago Actions #32

  • Target version changed from 3.1.21 to 3.1.22

Updated by Vincent MEMBRÉ over 8 years ago Actions #33

  • Target version changed from 3.1.22 to 3.1.23

Updated by Vincent MEMBRÉ over 8 years ago Actions #34

  • Target version changed from 3.1.23 to 3.1.24

Updated by Vincent MEMBRÉ about 8 years ago Actions #35

  • Target version changed from 3.1.24 to 3.1.25

Updated by Benoît PECCATTE about 8 years ago Actions #36

  • Target version changed from 3.1.25 to 4.1.9

Updated by Vincent MEMBRÉ about 8 years ago Actions #37

  • Target version changed from 4.1.9 to 4.1.10

Updated by Benoît PECCATTE almost 8 years ago Actions #38

  • Target version changed from 4.1.10 to Ideas (not version specific)
Actions

Also available in: PDF Atom