As an anonymous user, you can only add new data. If you would like to also modify existing data, please create an account and indicate your languages on your user page.

User:MartinMai/omegawiki nagios service

From OmegaWiki
Jump to: navigation, search

define service{

       use				http,local-service,srv-pnp         ; Name of service template to use
       host_name                  	omegawiki.org
       service_description             check_http_omegawiki.org

check_command check_http! -H omegawiki.org --url=/Special:Recentchanges/ -w 20 -c 20 --eregi="Omegawiki has a problem" --invert-regex normal_check_interval 1 event_handler restart-omegawiki

       }


define command{ command_name restart-omegawiki command_line ssh XXXX 'sh /home/nagios/restart_ow' }

compare a reference outputfile with the output