Hi,
I would like to ask you guys for ideas and advice if i have done this correct, and if there could be something that i could improve.
I describe shortly what i have:
I monitor a process that occasionally crashes. For this i have created a trigger that get's fired if the process goes down. Sometimes i need to stop manually this process, and in this case i don't want it to be restarted. For this case i have modified the init-script to create a file (manual.stop) when the process is shut down properly.
For this setup I have two items:
1) Process running (checks if process is running with proc.num)
2) manual.stop status (checks with vfs.file.exists if a file named manual.stop exists)
To fire the action to start my process, i have one trigger with two conditions:
1) Process is down
AND
2) manual.stop file does NOT exist
I have also a second trigger that informs me if the process has been shut down manually:
1) Process is down
AND
2) manuals.stop file DOES exists
The problem i usually get are false alarms when the process is shut down manually. I would not want to get any info if the process is shut down correctly, but if the process has crashed, then i want a notification about this..
I wonder if i need to use trigger dependencies. I'm not really familiar in what kind of cases they should be used.
So any help/ideas or feedback on my setup are welcome :-)
I would like to ask you guys for ideas and advice if i have done this correct, and if there could be something that i could improve.
I describe shortly what i have:
I monitor a process that occasionally crashes. For this i have created a trigger that get's fired if the process goes down. Sometimes i need to stop manually this process, and in this case i don't want it to be restarted. For this case i have modified the init-script to create a file (manual.stop) when the process is shut down properly.
For this setup I have two items:
1) Process running (checks if process is running with proc.num)
2) manual.stop status (checks with vfs.file.exists if a file named manual.stop exists)
To fire the action to start my process, i have one trigger with two conditions:
1) Process is down
AND
2) manual.stop file does NOT exist
I have also a second trigger that informs me if the process has been shut down manually:
1) Process is down
AND
2) manuals.stop file DOES exists
The problem i usually get are false alarms when the process is shut down manually. I would not want to get any info if the process is shut down correctly, but if the process has crashed, then i want a notification about this..
I wonder if i need to use trigger dependencies. I'm not really familiar in what kind of cases they should be used.
So any help/ideas or feedback on my setup are welcome :-)
roc.num[,,,my_process_name].last(0)}=0
Comment