Pages: [1]
Print
Author Topic: Configure a centralized syslog server on your ESX host  (Read 1390 times)
esarakaitis
Administrator
Sr. Member
*****
Posts: 256


8223109 sack57@hotmail.com littleking57 rootinfortwayne
View Profile WWW Email
« on: January 14, 2009, 07:52:55 AM »

Code:
#!/bin/bash

if [ ! "$(grep 'Custom syslog configuration' /etc/syslog.conf)" ]; then
  cat >> /etc/syslog.conf << NIL
###########################################################
###          Custom syslog configuration                ###
###########################################################

*.info;mail.none;authpriv.*;cron.none;local6.none;local5.none   @syslog.domain.com

###########################################################
NIL

/sbin/service syslog restart
else
  echo "Syslog already has a custom configuration section.  Leaving as is."
  exit 1
fi
Logged
Pages: [1]
Print
Jump to: