how to monitor deamon processes


 
Thread Tools Search this Thread
Operating Systems AIX how to monitor deamon processes
# 1  
Old 07-08-2010
how to monitor deamon processes

we have several deamon processes which were killed for some unknown reasons. we have to bring the deamon back manually everytime. Deamons running on 2 identical instances. It is ok on one instance but be killed 3 or 4 times a day on another. Any idea how to monitor it? like who/how the processes be killed? AIX 5.3, Oracle 10g.

Thanks
# 2  
Old 07-08-2010
If you are starting your daemons from the /etc/inittab, you can set them up like the cron daemon to automatically respawn it if it is killed or dies. You can see here I kill my cron daemon and the system automatically restarts it because of the "respawn" in the /etc/inittab.
Code:
host:/:$ grep ^cron /etc/inittab
cron:23456789:respawn:/usr/sbin/cron

host:/:$ ps -ef | grep cron
    root  4915380        1   0   Jun 15      -  1:02 /usr/sbin/cron

host:/:$ kill 4915380

host:/:$ ps -ef | grep cron
    root  8192228        1   7 15:42:04      -  0:00 /usr/sbin/cron
host:/:$

There is no logging doing it this way, but it will keep your processes running even if they are killed.

---------- Post updated at 03:46 PM ---------- Previous update was at 03:45 PM ----------

As to who is killing them... it has to be either root or the owner of the processes. I don't think you can kill some one else's running processes.
# 3  
Old 07-09-2010
Hi,
Zaxxon is right:
"You should check out the AIX error....."
When the daemon will be good you can listen me.
I prefere add your demon to system src.
create new service. If you do it you can start the service by 'startsrc xxxx', stop by 'stopsrc xxxx', or reload by 'refesh xxxx'.
and system do analogy as write the demon in /etc/inittab.

Last edited by john1212; 07-10-2010 at 08:48 PM..
# 4  
Old 07-09-2010
If it is no normal behaviour that your demon dies I would not recommend respawning it automatically all the time via inittab etc.
You should check out the AIX error report for an according entry and the log file your demon might write and solve the problem of the demon. It could be some memory problem or whatever - the log or errpt should tell.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

Searching for Saas Monitor service which monitor my servers which are sitting in different providers

Sorry if this is the wrong forum Searching for Saas Monitor service which monitor my servers which are sitting in different providers . This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard. The info I need is CPU / RAM / my servers status (... (1 Reply)
Discussion started by: umen
1 Replies

2. Debian

Gkrellm Linux HD Monitor needs a hddtemp deamon ?

Hi , i have enclosed a picture of gkrellm configuration. MX16 Debian Jessie Linux. For showing the temperature the software needs a hddtemp daemon running on port 7634 ! How to make that daemon ? A cool task. I dont know anything about that. Perhaps the commandline tool hddtemp is... (2 Replies)
Discussion started by: Zabo
2 Replies

3. Linux

Linux Total Processes - Why monitor it?

Hi Guys, Monitoring 'Total Processes' on Linux servers has been always something you 'should' do. My question is - why? Is it relevant anymore? If you monitor memory and cpu params, you have a pretty good idea about what's going on. Is the number of processes really matter? Thanks (1 Reply)
Discussion started by: DjDeaf
1 Replies

4. Shell Programming and Scripting

script to monitor different processes on different Unix servers

GM, Can you pls help how to write a script to monitor different processes on different unix servers and send the output to a /tmp/report file, earlier my boss asked me to write a script to monitor just one process running on different servers and send the output to a file so I wrote this exec... (0 Replies)
Discussion started by: baders
0 Replies

5. Ubuntu

How to monitor firefox processes?

Hi Team, I have over 100 users,working on LINUX machine & all they use firefox. I want to monitor traffic from every IP and mainly CPU USAGE TAKEN BY FIREFOX PROCESSES ON EACH MACHINE. Is there any tool which runs on lunux and will help me to monitor firefox processes of our entire LAN? ... (2 Replies)
Discussion started by: paragnehete
2 Replies

6. Infrastructure Monitoring

Using SNMP to monitor remote processes and disk space

snmpget -v 1 -c COMMUNITYSTR hostname OID what OIDs would I use to get information on all the processes and disk space information that are on a particular host. where can i find out information on all of this? thanks (3 Replies)
Discussion started by: SkySmart
3 Replies

7. Linux

Hal deamon..

I have install centos on my server,.. then after rebooting 2 ,3 times , hal deamon cannot start, and system hang on boot.. when i google, i found the solution which is off the hal daemon service... my question is, what is the effect if i off the deamon service ?:confused: tq (2 Replies)
Discussion started by: ultramen7
2 Replies

8. Shell Programming and Scripting

perl script to monitor 2 processes

I have two processes that I need to keep running. The first process is a server, the second is basically a canvas for creating images which get saved to a directory. So I plan on using launchd (Mac OS 10.5) on a server to check every minute or so to make sure two things are true: 1) Both apps... (3 Replies)
Discussion started by: Solerous
3 Replies

9. Red Hat

Permissionfor some deamon

Hi everyone. Now, i want to permit for an user to start, stop and reconfig some of daemon on Redhat system without root permission. So how can i do ? Tks all. (2 Replies)
Discussion started by: quan0509
2 Replies

10. UNIX for Advanced & Expert Users

deamon process

hi how to write deamon program i specified in detail i want to write c++ program when it run it run like deamon process (1 Reply)
Discussion started by: munnu
1 Replies
Login or Register to Ask a Question