Operating System - HP-UX
1833527 Members
3420 Online
110061 Solutions
New Discussion

configuring Serviceguard to log somewhere besides syslog.log

 
Ken Penland_1
Trusted Contributor

configuring Serviceguard to log somewhere besides syslog.log

Anyone have any suggestions on how to get serviceguard to dump its output to a log other than syslog?

Reason for asking is cause we want to monitor any failures or whatever, and it is easier to do if the only thing in the log is serviceguard stuff. So we want to put it in another log file like serviceguard.log or something...
'
6 REPLIES 6
Jeff Schussele
Honored Contributor

Re: configuring Serviceguard to log somewhere besides syslog.log

Hi Ken,

All Service Guard packages will log to their own log file - usually named

/etc/cmcluster/pkg_name/pkg_name.log

Lower level errors such as NIC trouble or disk problems exist *beneath* MC/SG & are therefore logged to syslog.log by design & default. You'd have to redirect *all* of these error types to another file via the syslog.conf file but would be hard-pressed to determine whether they are MC/SG generated or impacting.
If you have monitoring sections inside these package control scripts you could designate where it logs from inside these sections, however.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: configuring Serviceguard to log somewhere besides syslog.log

I guess you could look at using the /etc/syslog.conf file for directing all MCSG messages to another log file - see the man page for syslogd for details. I'm no expert on this, so I'll leave some examples to those who are...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
melvyn burnard
Honored Contributor

Re: configuring Serviceguard to log somewhere besides syslog.log

You can do this by setting up the syslog.conf file for the syslogd, but this does cause issues when you have to log a support call, as you must remember to tell the HP Response Centre that there is a separate logfile for any cluster related messages, ohterwise it could delay any problem resolution
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Geoff Wild
Honored Contributor

Re: configuring Serviceguard to log somewhere besides syslog.log

MS/SG runs as a Daemon - so you could do this in syslog.conf:
daemon.info;mail.none /var/adm/syslog/daemon.log

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jeff Schussele
Honored Contributor

Re: configuring Serviceguard to log somewhere besides syslog.log

Hi Melvyn,

Are you saying that MC/SG has it's own syslog code for facility & level?
If so, what is it?
I didn't think it had it's own.

Or do you have to define one?
And if so, how?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: configuring Serviceguard to log somewhere besides syslog.log

Hi Geoff,

So does everything else that starts up out of /sbin/rcX.d

So how would one know whether the msg is from Measureware, NTP, NFS, EMS, etc? Basically a LOT of stuff would log there, not just MC/SG.

My $0.02,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!