Merge branch 'master' of ssh://lausser,shinken@shinken.git.sourceforge.net/gitroot...
[shinken.git] / external_commands / PROCESS_HOST_CHECK_RESULT.sh
blobc0cc13eb2c380d24075dec9e3f0637a7b45668a2
1 #!/bin/sh
2 # This is a sample shell script showing how you can submit the CHANGE_HOST_CHECK_COMMAND command
3 # to Nagios. Adjust variables to fit your environment as necessary.
5 now=`date +%s`
6 commandfile='/usr/local/shinken/var/rw/nagios.cmd'
8 printf "[%lu] PROCESS_HOST_CHECK_RESULT;dc1;2;yoyo est mort\n" $now > $commandfile