Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
{ | |
"event_id": "12345678910:1403052700000:OK", | |
"log_entry_id": "123456789101234567891012345678910", | |
"details": { | |
"target": "rackspace.com", | |
"timestamp": 1403052704485, | |
"metrics": { | |
"duration": { | |
"type": "I", | |
"data": 240, |
#!/usr/bin/env python | |
import os | |
import re | |
import threading | |
import time | |
import subprocess | |
from os.path import splitext, expanduser, normpath | |
import click |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/bash | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 1 |
"""Navega la estructura de un device y obtiene todas las graficas correspondientes al mismo""" | |
import logging | |
import os | |
import sys | |
import string | |
import xml.dom.minidom | |
from xml.dom.minidom import Document | |
#from Products.ZenModel.ConfigurationError import ConfigurationError | |
#from Products.ZenModel.DataRoot import DataRoot |
""" Zen.py | |
Provides a set of effective tools to query Zenoss | |
database ( ZeoDB ) using an active socket. | |
Through this class all device features can be | |
retreived | |
""" | |
#import pdb #-- Se utiliza para habilitar el python debuger en modo command line |
import com.google.gson.Gson; | |
import com.google.gson.JsonSyntaxException; | |
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.ParseError; | |
import com.android.volley.Request; | |
import com.android.volley.Response; | |
import com.android.volley.Response.ErrorListener; | |
import com.android.volley.Response.Listener; |