Skip to content
Browse files

add script to update nagios config for feat

  • Loading branch information...
1 parent 9072706 commit a41f260c78fc3fcfc6065ad6ef217a4bd1edcdab Thomas Vander Stichele committed May 10, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 sbin/feat-update-nagios
View
9 sbin/feat-update-nagios
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# first argument is the path to the config file to install
+DIR=/etc/nagios/feat
+
+mkdir -p $DIR
+cp $1 $DIR
+chown nagios:nagios /etc/nagios/feat/*
+service nagios checkconfig && service nagios restart

0 comments on commit a41f260

Please sign in to comment.
Something went wrong with that request. Please try again.