Delete information from one host in Prometheus

30 05 2017

If we have information in Prometheus from one node and we need to remove it, the following api request solve it:

curl -X DELETE -g 'http://IP_prometheus:9090/api/v1/series?match[]={instance="IP_node_to_remove:9100"}'


Disable time sync between host and guest in Linux VirtualBox

19 05 2017

To the following files:

/home/[your_user]/VirtualBox\ VMs/[VM_Name]/[VM_Name].vbox

Add the line:

<ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="1"/>

More info:

Migrar trac de un host a otro

22 09 2011

En la máquina nueva:
# mkdir /var/trac/aaa

En la máquina vieja:
# cd /var/trac/aaa; tar -czvf - ./ | ssh root@ "cd /var/trac/aaa; tar -xzvf -"

En la nueva:
# cd /var/trac/aaa/db/; cp trac.db SAVE.trac.db; sqlite trac.db .dump | sqlite3; cp trac.db
# trac-admin /var/trac/aaa upgrade
# trac-admin /var/trac/aaa wiki upgrade
# chgrp -R www-data /var/trac/
# chmod -R ug+rwx /var/trac/