Operating System - HP-UX
1752586 Members
3732 Online
108788 Solutions
New Discussion

Re: How to log segfaults / core dumps to syslog

 
bsekleckiFedex
Occasional Contributor

How to log segfaults / core dumps to syslog

All:

 

In GNU/Linux && FreeBSD, syslogd(8) tracks /dev/klog which gets appended to when segfaults / coredumps (and other signal/abnormal exits) happen.  This results in coredumps getting syslogged for offload to an NMS such as OpenView or other.

 

dmesg(8) on HP-UX doesn't seem to have these.

 

Is there a  kctune(8) argument I need to run to enable this?  Older pre 11.23 posts suggest a "alwaysdump" or "dump_all" tuneable flag.  Running B.11.23

 

Any advise? Thanks, ~Brian


Brian A Seklecki
Fedex Services
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: How to log segfaults / core dumps to syslog

I don't think any application aborts get logged at all.  Not unless you have a signal handler and call syslog(2).

And you can use coreadm(1m) to put the corefiles in a central location.

bsekleckiFedex
Occasional Contributor

Re: How to log segfaults / core dumps to syslog

YIKES!

 

So I'd have to request this feature as a HP-UX kernel new feature request (NFR), in light of all the GNU/Linux efforts?


Brian A Seklecki
Fedex Services
Dennis Handly
Acclaimed Contributor

Re: How to log segfaults / core dumps to syslog

>So I'd have to request this feature as a HP-UX kernel new feature request

 

It looks like it.