Nagios Plugin Check That A File Exists Python Script

Automatically Restart Linux Application With All Arguments KSH script

Here is a script that you can use to start your application on Linux. What this script will do is read in all the arguments from the command line and store them in a special shell variable. If the application segmentation faults, the script will automatically start the application using all the command line arguments. Also this will write that the application has died to any syslog on the system.

Here is how it should be called.

And here is the actual code written in KSH.