Git Product home page Git Product logo

op's People

Contributors

akjode avatar carlesreig avatar

Stargazers

 avatar

Watchers

 avatar  avatar

op's Issues

Logo design

Hi,
I have design this logo with the letter O and P, if you like you can keap it for this project.
If you want it I will give you all the formats of the design free. If you want to make changes please specify.

Greetings

oplogo-model

Nou menu.sh

!/bin/sh

clear

definicio de colors

NORMAL=`echo "\033[m"`
MENU=`echo "\033[36m"` #Blau cel
NUMBER=`echo "\033[33m"` #groc
FGRED=`echo "\033[41m"`
RED_TEXT=`echo "\033[31m"`
ENTER_LINE=`echo "\033[33m"`
COLOR='\033[01;31m' # Negretas en vermell
RESET='\033[00;00m' # normal blanca

echo -e "${COLOR}Introdueix el PWD de usuari UNIX"
read -s PASS
export PASS

clear

menu() {
echo -e "${MENU}***************************************************
${NORMAL}"
echo -e "${MENU}**_***************** Unix **************************${NORMAL}"

echo -e "${MENU}**"

echo -e "${MENU}**${NUMBER} 11)${MENU} Too many instances X ${NORMAL}"
echo -e "${MENU}**${NUMBER} 12)${MENU} ONE least ITO ${NORMAL}"
echo -e "${MENU}**${NUMBER} 13)${MENU} NTP offset ${NORMAL}"
echo -e "${MENU}**${NUMBER} 14)${MENU} not running ntpd verificacio ${NORMAL}"
echo -e "${MENU}**${NUMBER} 15)${MENU} not running ntpd ${RED_TEXT} arranc (actualment no tenim permis) ${NORMAL}"
echo -e "${MENU}**${NUMBER} 16)${MENU} not running perfalarm ${NORMAL}"
echo -e "${MENU}**${NUMBER} 17)${MENU} not running standard ${NORMAL}"

echo -e "${MENU}**"

echo -e "${MENU}**${NUMBER} 999)${MENU} evweb eventviewer ${NORMAL}" en desenvolupament

echo -e "${MENU}****************************************************${NORMAL}"

echo -e "${MENU}******************* Monitoritzacio *****************${NORMAL}"

echo -e "${MENU}**"

echo -e "${MENU}**${NUMBER} 21)${MENU} SWAPINFO&FREE ${NORMAL}"
echo -e "${MENU}**${NUMBER} 22)${MENU} UPTIME ${NORMAL}"
echo -e "${MENU}**${NUMBER} 23)${MENU} CPU & PROCESS ${NORMAL}"

echo -e "${MENU}**"

echo -e "${MENU}****************************************************${NORMAL}"

echo -e "${MENU}******************* FileSystems ********************${NORMAL}"

echo -e "${MENU}**"

echo -e "${MENU}**${NUMBER} 31)${MENU} FS i archius major ocupacio ${NORMAL}"

echo -e "${MENU}**"

echo -e "${MENU}****************************************************${NORMAL}"
echo -e "${MENU}**${NUMBER} s)${MENU} Exit ${NORMAL}"
echo -e "${MENU}****************************************************${NORMAL}"
echo -e "${MENU}****************************************************${NORMAL}"
echo -e "${ENTER_LINE}Selecciona la opcio i presiona enter o ${RED_TEXT}presiona s enter per sortir. ${NORMAL}"

}

function option_picked() {
MESSAGE=${@:-"${RESET}Error: No message passed"}
echo -e "${COLOR}${MESSAGE}${RESET}"
}

opcio per defecte

opc="0"

function func_servidor {
echo "A quin servidor vols accedir?"
read HOST
}

export -f func_servidor

function func_instancia {
echo "Quina instancia vols verificar?"
read INSTANCIA
}

export -f func_instancia

function func_FS {
echo "Escriu el FS a revisar"
read FS
}
export -f func_FS

bucle mentres la opcio indicada sigui diferent de s (sortir)

until [ "$opc" == "s" ]; do
case $opc in

11)
      option_picked "Opcio $opc seleccionada";
    ./too_many_instances.sh;
_menu
;;

12)
  option_picked "Opcio $opc seleccionada";
  ./ONE_least_ITO.sh;
_menu
;;

13)
      option_picked "Opcio $opc seleccionada";
    ./NTP_offset.sh;
_menu
;;

14)
      option_picked "Opcio $opc seleccionada";
        ./ntpd_not_running_verificacio_no_arranc.sh;
_menu
;;

15)
      option_picked "Opcio $opc seleccionada";
        ./ntpd_not_running_arranc.sh;
_menu
;;

16)
   option_picked "Opcio $opc seleccionada";
     ./perfalarm.sh;
_menu
;;

17)
   option_picked "Opcio $opc seleccionada";
     echo "tambe serveix per a les syslogd, xntp, coda, xinetd";
     ./not_running_standard.sh;
_menu
;;

21)
  option_picked "Opcio $opc seleccionada";
  ./free.sh;
_menu
;;

22)
  option_picked "Opcio $opc seleccionada";
    ./up.sh;
_menu
;;

23)
  option_picked "Opcio $opc seleccionada";
    ./top.sh;
_menu
;;

31)
   option_picked "Opcio $opc seleccionada";
   ./fs.sh;
_menu
;;

999)
   option_picked "Opcio $opc seleccionada";
     echo "torna el resultat que es demana per a UNIX";
     ./evwebX.sh;
_menu
;;

111)
   option_picked "Opcio $opc seleccionada";
    clear
    echo "Scripts creat per Ricard Rabert Brugue, colaborador Carles Reig";
_menu
;;
s)
    exit
    ;;
*)

Si no es ninguna de les anteriors.

clear
_menu
;;

esac
read opc
done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.