Skip to content

Commit

Permalink
Added basic nagios examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Sep 23, 2010
1 parent f660081 commit 790d1d0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kong/plugins/nagios_config
@@ -0,0 +1,16 @@

define service{
use generic-service ; Name of service template to use
; Use your own host name.
;host_name Golem
service_description Run Kong
check_command run_kong
normal_check_interval 3
}

#commands.cfg
define command {
command_name run_kong
command_line $USER1$/run_kong
}

7 changes: 7 additions & 0 deletions kong/plugins/nagios_plugin
@@ -0,0 +1,7 @@
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export DJANGO_SETTINGS_MODULE=settings
export PYTHONPATH=`pwd`
django-admin check_sites
exit

0 comments on commit 790d1d0

Please sign in to comment.