Daemon monitoring


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Daemon monitoring
# 1  
Old 07-04-2013
Daemon monitoring

I'm wondering if there's any way to monitor daemons in such a way that if a daemon stops running (e.g. crond, xinetd etc etc), it logs the time and date (and process id) of the stopped daemon ?

Does anyone know if that's even possible ? I'm trying to work out if it logs anywhere when a daemon stops running as i'd like to log when all daemons start and stop and their respective process id's (not sure if its even possible!).

Thanks for any pointers, guys!

Cheers
# 2  
Old 07-05-2013
Its more a question of how/why it is stopped... If you have a program/script to stop the daemon then just add a line so it adds when it was stopped... if its because of ??? Then you have no other choice either to use a monitoring utility ( e.g. opensource nagios ?) or write your own and scheduling it correctly so it doesnt take too much resource...
If you log when it starts while at it keep also its PID, then you know what to look for...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

cron daemon name

Hi All, Please tell me which daemon is responsible for start and stop the crontab. Please tell me the location where it resides in Linux platform. Sindu. (2 Replies)
Discussion started by: indira_s
2 Replies

2. UNIX for Dummies Questions & Answers

Restart a Daemon

Dear expert, How do i restart a daemon ? I know to use the kill <PID> command to shut down the daemon. But after terminate the daemon, how to restart it back ? :confused: Please advice, many thanks in advance !!! :) (2 Replies)
Discussion started by: kseng2002
2 Replies

3. Shell Programming and Scripting

Daemon 101

I think I have an issue almost like Sammy_T's. I want to make a piece of code run as a daemon. I have some java, along with it 15 classpath's converted to a shell script that I can "runmyjavap". The script is just what I need to run after compiling it: #!/bin/sh java -classpath : ...(from... (3 Replies)
Discussion started by: Miller_K
3 Replies

4. Programming

Daemon

i want to write a daemon service which listens the 8080 port and write down all the details in one file. How can i do this ? (2 Replies)
Discussion started by: santosh123
2 Replies

5. Linux

daemon process

how i will write the daemon process,if any body have sample daemon process send me. (1 Reply)
Discussion started by: suresh_rupineni
1 Replies

6. Programming

How to write daemon?

Hi , I want to know how to write a daemon process. I also want to know the concept behind daemon processes. Any material or sample program will be great :) . Thanks in advance -sg (2 Replies)
Discussion started by: sg6876
2 Replies

7. AIX

rsync daemon

Does anyone out there use rsync on AIX 5.2, I've installed and would like to run in server mode, I've setup in services and inetd.conf and refreshed inetd. The rsync daemon however does not start, I've also tried rsync --daemon, this just returns to the # prompt. The rsync command itself appears to... (1 Reply)
Discussion started by: gefa
1 Replies

8. Programming

Creating a Daemon

how to convert a c program into a Daemon. thanks in advance svh (2 Replies)
Discussion started by: svh
2 Replies

9. Programming

Make a Daemon?

hi can any one tell me how to make an executable to a daemon:confused: (2 Replies)
Discussion started by: sivhard
2 Replies

10. Programming

daemon

I want to write background running program. How to use daemon function. Please send me source code. Thanks. (1 Reply)
Discussion started by: bat_oyu
1 Replies
Login or Register to Ask a Question