New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/cron.d/sensor-newday updates #439

Closed
GoogleCodeExporter opened this Issue Mar 24, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter
# /etc/cron.d/sensor-newday
#
# crontab entry to restart the sensor processes ensuring rotation of logs.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

00 0    * * * root /usr/sbin/nsm_sensor_ps-daily-restart
01 0    * * * root /etc/init.d/syslog-ng restart
10 0    * * * root /etc/init.d/syslog-ng restart
00 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-sancp-agent 
>/dev/null
01 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-http-agent >/dev/null
02 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-ossec-agent 
>/dev/null
03 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pads-agent >/dev/null
04 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pcap-agent >/dev/null
05 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-snort-agent 
>/dev/null

should redirect all output from syslog-ng restart to /dev/null

Original issue reported on code.google.com by doug.bu...@gmail.com on 11 Dec 2013 at 1:58

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

# /etc/cron.d/sensor-newday
#
# crontab entry to restart the sensor processes ensuring rotation of logs.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

00 0    * * * root /usr/sbin/nsm_sensor_ps-daily-restart
01 0    * * * root /etc/init.d/syslog-ng restart >/dev/null 2>&1
10 0    * * * root /etc/init.d/syslog-ng restart >/dev/null 2>&1
00 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-sancp-agent 
>/dev/null
01 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-http-agent >/dev/null
02 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-ossec-agent 
>/dev/null
03 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pads-agent >/dev/null
04 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pcap-agent >/dev/null
05 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-snort-agent 
>/dev/null

Original comment by doug.bu...@gmail.com on 11 Dec 2013 at 1:58

  • Added labels: ****
  • Removed labels: ****
# /etc/cron.d/sensor-newday
#
# crontab entry to restart the sensor processes ensuring rotation of logs.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

00 0    * * * root /usr/sbin/nsm_sensor_ps-daily-restart
01 0    * * * root /etc/init.d/syslog-ng restart >/dev/null 2>&1
10 0    * * * root /etc/init.d/syslog-ng restart >/dev/null 2>&1
00 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-sancp-agent 
>/dev/null
01 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-http-agent >/dev/null
02 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-ossec-agent 
>/dev/null
03 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pads-agent >/dev/null
04 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pcap-agent >/dev/null
05 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-snort-agent 
>/dev/null

Original comment by doug.bu...@gmail.com on 11 Dec 2013 at 1:58

  • Added labels: ****
  • Removed labels: ****
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

Published:
http://blog.securityonion.net/2013/12/new-nsm-and-setup-packages-available.html

Original comment by doug.bu...@gmail.com on 31 Dec 2013 at 12:07

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****
Published:
http://blog.securityonion.net/2013/12/new-nsm-and-setup-packages-available.html

Original comment by doug.bu...@gmail.com on 31 Dec 2013 at 12:07

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment