- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Who is killing my processes?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2008 02:22 AM
06-07-2008 02:22 AM
Who is killing my processes?
I know that customer have a lot of their customized own written scripts in a cron that check some alive status of the critical processes and I'm suspecting that it could be the reason.
Is it possible to turn audit and determine who is killing my processes - which script either user does it?
Thank you in advance.
BR, Michael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2008 05:40 AM
06-07-2008 05:40 AM
Re: Who is killing my processes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2008 12:55 PM
06-07-2008 12:55 PM
Re: Who is killing my processes?
rename "kill" to "kill.program".
Write a shell-script "kill",
that dumps some usefull Information, like
- echo $(date) $(time) >> /var/log/mykill.log
- whoami >> /var/log/mykill.log
- id >> /var/log/mykill.log
- env >> /var/log/mykill.log
and after this calls
kill.program $*
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2008 01:02 PM
06-07-2008 01:02 PM
Re: Who is killing my processes?
I'm not sure. I've had it happen to me but never was able to track it down. It has to do with heavy loads on the system. Possibly over subscribing swap space?
I claim if the kernel is going to stab you in the back like that, it should log it in syslog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2008 06:00 AM
06-08-2008 06:00 AM
Re: Who is killing my processes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2008 07:34 PM
06-08-2008 07:34 PM
Re: Who is killing my processes?
[...]
process Log all operations on processes, including
exit(2), fork(2), kill(2), mlock(2), mlockall(2),
munlock(2), munlockall(2), setcontext(2),
setrlimit64(2), sigqueue(2), ulimit64(2), and
vfork(2).
[...]
I know nothing, but it looks promising.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2008 12:11 AM
06-09-2008 12:11 AM
Re: Who is killing my processes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2008 04:51 AM
06-09-2008 04:51 AM
Re: Who is killing my processes?
I've written new kill script and have replaced it with the original one at /usr/bin/kill, here it is:
#!/bin/sh
export UNIX95=1
date >> /var/tmp/killBill.log
ps -efxH >> /var/tmp/killBill.log
echo $* >> /var/tmp/killBill.log
echo "\n" >> /var/tmp/killBill.log
/usr/bin/kill_orig $*
Unfortunately it does not write anything to log. I have an assumption that kill signal is sending via the kernel and does not uses /usr/bin/kill at all.
Isn't it?
Could you tell a bit more regarding
kernel instrumentation feature?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2008 05:08 AM
06-09-2008 05:08 AM
Re: Who is killing my processes?
Some application could be calling kill(2) directly.
>I have an assumption that kill signal is sending via the kernel and does not uses /usr/bin/kill at all.
That was my assumption for my reply. Are you using chatr(1) or mmap(2) options to oversubscribe swapspace?
>regarding kernel instrumentation feature?
Why not try Steven's audit(5) suggestion first?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2008 07:56 AM
06-09-2008 07:56 AM
Re: Who is killing my processes?
>Some application could be calling kill(2) directly.
I've tried to use: kill -TERM xxx from console and even this is not using /usr/bin/kill
Take a look below:
msklabss:/ (211) root% mx | grep mecsla
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME COMD
1 S 401 1699 3203 0 154 20 5336f380 243 4c79d6e ? 0:00 mecslamx
1 S 401 1729 3203 0 154 20 76c3f1c0 231 65678ee ? 0:00 mecslamx
1 S 401 1770 3203 0 154 20 5c3dae40 231 7428dae ? 0:00 mecslamx
msklabss:/ (212) root% kill -TERM 1699
msklabss:/ (213) root% kill -9 1729
msklabss:/ (214) root% ll /var/tmp/killBill.log
-rw-rw-rw- 1 root sys 0 Jun 9 19:38 /var/tmp/killBill.log
msklabss:/ (215) root% !mx
mx | grep mecsla
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME COMD
1 S 401 1770 3203 0 154 20 5c3dae40 231 7428dae ? 0:00 mecslamx
msklabss:/ (216) root% ll /var/tmp/killBill.log
-rw-rw-rw- 1 root sys 0 Jun 9 19:38 /var/tmp/killBill.log
msklabss:/ (217) root% /usr/bin/kill -TERM 1770
msklabss:/ (218) root% ll /var/tmp/killBill.log
-rw-rw-rw- 1 root sys 76848 Jun 9 19:40 /var/tmp/killBill.log
msklabss:/ (219) root% which kill
/usr/bin/kill
msklabss:/ (220) root% cat /usr/bin/kill
#!/bin/sh
export UNIX95=1
date >> /var/tmp/killBill.log
ps -efxH >> /var/tmp/killBill.log
echo $* >> /var/tmp/killBill.log
echo "\n" >> /var/tmp/killBill.log
/usr/bin/kill_orig $*
msklabss:/ (221) root%
>>I have an assumption that kill signal is sending via the kernel and does not uses /usr/bin/kill at all.
>That was my assumption for my reply. Are you using chatr(1) or mmap(2) options to oversubscribe swapspace?
I do not use chatr or mmap options to oversubscrive swapspace,
as I know that we do not have problem with system overload either heavy swap space usage as well.
In our case I'm suspecting that some user-written cron script sometime kills right good processes by mistake either some user is doing that.
>>regarding kernel instrumentation feature?
>Why not try Steven's audit(5) suggestion first?
And here we have a problem as well, because to switch on audit feature hp-ux has request to convert to a Trusted System before proceeding and we can't do it as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2008 09:01 AM
06-09-2008 09:01 AM
Re: Who is killing my processes?
> console and even this is not using
> /usr/bin/kill
"kill" is a shell built-in command for many
shells.
"man sh".
"man sh-posix" (or whatever).
And any progran can call kill().
"man 2 kill".
> And here we have a problem as well, because
> to switch on audit feature hp-ux has
> request to convert to a Trusted System
> before proceeding and we can't do it as
> well.
Somtimes you need to use a better operating
system to get your work done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 12:48 PM
06-27-2008 12:48 PM