Ir al contenido principal

checkSystem

Hola a todos otra vez.

Hoy dejo una nueva pequeña utilidad tonta para que se compruebe constantemente que EL SISTEMA ENTERO esta funcionando bien, y en caso de fallo se informe a la cuenta de correo que se configure. Ver anexo 1

Astaló

pd. Edita el .properties para poner los datos de la cuenta desde la que manda correos
ppd. En el anexo 2 hay un bashscript de instalacion facilon facilon

--

Hello everyone again

Today I left here another little stupid utility to check cyclically for THE WHOLE SYSTEM to be working correctly, if an error is found a mail is sent to a configured address. See annex 1

Bye!

pd. Edit the .properties to fill the credentials of the sender account
ppd. Really easy installation script file in annex 2

--

Anexo 1

http://checksystemcron.googlecode.com/files/checksystemcron-0.0.1.zip

Anexo 2

# Install checkSystem
wget http://checksystemcron.googlecode.com/files/checksystemcron-0.0.1.zip
7z x -y checksystemcron-0.0.1.zip
mv checksystemcron /usr/share
CHECKSYSTEM_EXEC="/usr/share/checksystemcron/checkSystem.py"
CHECKSYSTEM_CONFIG_FILE="/usr/share/checksystemcron/checkSystem.properties"
mv $CHECKSYSTEM_CONFIG_FILE $CHECKSYSTEM_CONFIG_FILE.old
cat $CHECKSYSTEM_CONFIG_FILE.old |
sed 's/gmail_user =.*/gmail_user=tuusuario@gmail.com/g' |
sed 's/gmail_pwd =.*/gmail_pwd=tupwd/g' > $CHECKSYSTEM_CONFIG_FILE
chmod 777 $CHECKSYSTEM_EXEC
rm checksystemcron-0.0.1.zip
ln -s $CHECKSYSTEM_EXEC /usr/bin/checkSystem


Comentarios

Entradas populares de este blog

Yamaha XT 125R Manual

Para aquellos que lo hayan perdido y no quieran comprar uno nuevo por el doble de lo que cuesta cambiar el aceite.. https://mega.nz/#F!ZeYh3QzD !mSOhljTo5UWedfEWq5cCjw Algunos "trucos":  - Si os marca mal la velocidad es porque la teneis configurada mal (supermotard en enduro y viceversa), para cambiar este ajuste teneis que quitar la bateria varios minutos y al volver a enchufar con el boton azul seleccionar la correcta. La mia es enduro  - Si cambiais el aceite:    + Para no tener que desmontar media moto lo mejor es introducir una botella de cocacola de plástico cortada, con el tapón abierto y dejar que el aceite escurra a traves de ella hacia la lata dónde vais a desecharlo    + Para resetear el contador de kilómetros que quedan para el cambio de aceite hay que apagar la moto, pulsar el botón azul, encenderla y esperar hasta que en la pantalla aparezca reseteado

Tasker: Profiles with priorities

Hi! If you read Tasker docs, you may find that with Tasker its not possible to establish actions based on profile priorities if you have two of them activated at the same time; in the other hand Setting Profiles is a unmantained old app that can do this, but have no scripting capabilities like Tasker. Here is the solution using Tasker powerful environment. The main idea is to do this: Profiles/Init (44) A1: If [ %Profiles_pactivelast Is Set & %Profiles_pactivelast !~ %PACTIVE ] A2: Perform Task [ Name:Profiles/Profile/Default Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]  A3: Variable Set [ Name:%profile_priority To:Work,Class,Study,Sleep,Low battery, Charging weak,Charging strong Do Maths:Off Append:Off ]  A4: Variable Split [ Name:%profile_priority Splitter:, Delete Base:Off ]  A5: For [ Variable:%profile Items:%profile_priority() ]  A6: [X] Flash [ Text:%profile Long:Off ]  A7: [X] Wait [ MS:0 Seconds:5 Minutes:0 Hour