Home Forums OS X Server and Client Discussion Questions and Answers DiskSpaceMonitor running hourly not as specified in crontab

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #360748
    Mark
    Participant

    hi,

    i set up diskspacemonitor according to the instructions in an article on this website. i set the frequency for the diskspacemonitor check to run in the roots crontab to be 1440 minutes. however it is checking hourly. i changed the time to 720 minutes but it is still running hourly. no crontab exists for the admin login account. any ideas how i can fix would be welcome.

    $ cat system.log
    Feb 18 03:15:01 macserver2 syslogd: restart
    Feb 18 04:00:00 macserver2 CRON[5390]: (root) CMD (/usr/sbin/diskspacemonitor check)

    $ sudo crontab -l
    */720 * * * * /usr/sbin/diskspacemonitor check

    $ cat diskspacemonitor.conf
    # Config for diskspacemonitor
    #

    monitor_interval=720 # Check disks at this interval, in minutes

    alert_threshold=85 # When a disk is this percentage full, execute
    # the alert scripts in
    # /etc/diskspacemonitor/action/

    recovery_threshold=95 # When a disk is this percentage full, execute
    # the recovery scripts in
    # /etc/diskspacemonitor/action/

    log_file=/var/log/diskspacemonitor.log

    #360756
    bustthis
    Participant

    i was going to ask this question because for my server every 60 minutes seems a bit too excessive. i think you are limited to 60 minutes, unless you hack /usr/sbin/diskspacemonitor… i could be completely wrong though Smile

    #360763
    Mark
    Participant

    i think i resolved the problem. i modified my crontab as follows:

    $ sudo crontab -l
    @daily /usr/sbin/diskspacemonitor check

    and so far it appears to be working as i hoped. i suspect the max number of minutes is probably 59. anything larger and it uses 60.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed