Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. # =============================================================================
  2. # Monitoring plugins
  3. # =============================================================================
  4. PLUGIN=monitoring-plugins-2.0
  5. PLUGIN_FILENAME=$PLUGIN.tar.gz
  6.  
  7. PLUGIN_DOWNLOAD_ADRESS=https://www.monitoring-plugins.org/download/$PLUGIN_FILENAME
  8.  
  9. echo "Downloading: $PLUGIN_DOWNLOAD_ADRESS ..."
  10. [ -e "$PLUGIN_FILENAME" ] && echo '$PLUGIN_FILENAME already exists.'
  11. if [ ! -e "$PLUGIN_FILENAME" ]; then
  12. wget -q $PLUGIN_DOWNLOAD_ADRESS
  13. if [ $? -ne 0 ]; then
  14. echo "Not possible to download $PLUGIN_FILENAME."
  15. exit 1
  16. fi
  17. fi
  18.  
  19. echo "Installing $PLUGIN"
  20.  
  21. tar xvzf $PLUGIN_FILENAME
  22. cd $PLUGIN
  23. ./configure
  24. make
  25. make install
  26.  
  27. echo "Cleaning up..."
  28. rm -f $PLUGIN_FILENAME
  29. rm -rf $PLUGIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement