#ifndef _Z_DEFINES_H #define _Z_DEFINES_H /* zentific-poll: statistics collection daemon for Zentific * Copyright (C) 2007, 2008 * Steven Maresca, Justin Demaris, * and Zentific LLC * * All rights reserved. * Use is subject to license terms. * * Please visit http://zentific.com for news and updates * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ //---------------DEFINES-------------------- //Zentific formalities #define ZENTIFIC_POLL_VER "1.8.1" #define ZENTIFIC_CHANGESET "135" #define ZENTIFIC_COPYRIGHT "Copyright 2007, 2008, 2009 Steven Maresca and Zentific LLC" #define ZENTIFIC_DISCLAIMER "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS.' ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." #define ZENTIFIC_CONTACT "Please send general correspondence to contact@zentific.com and bug reports to bugs@zentific.com" //xenstat specific #define SHORT_ASC_LEN 5 // length of 65535 #define VERSION_SIZE (2 * SHORT_ASC_LEN + 1 + sizeof(xen_extraversion_t) + 1) //length of str required to display xen ver //Zentific default presets #define DEFAULT_DELAY 30 // time between loops #define DEFAULT_CONFIG_FILE "/etc/zentific/node.conf" // default path to the zentific config file #define DEFAULT_PID_FILE "/var/run/zentific-poll.pid" // file location to store process id #define DEFAULT_LOG_FILE "/var/log/zentific/zentific-poll.log" // file location to store log file #define DEFAULT_LOG_TYPE "local" // default type of logging destination (remote will be supported) #define DEFAULT_BACKEND_HOST "www.zentific.com" // default is zentific.com; user must specify host in config file #define DEFAULT_XMLRPC_PATH "/rpc/" // default rpc destination path (if any). specify in config file #define TRUST "/etc/zentific/server.pem" // default path to trust #define IGNORE_TRUST_ERROR 1 // ignore trust errors (e.g. expired or self-signed certs) #define BAIL_THRESHOLD 5 // number of attempts for XMLRPC call before giving up #define ZEROUUID "00000000-0000-0000-0000-000000000000" //FIXME: TRUST -> some path in a subdir of /etc/zentific //shutdown reasons #define SHUTDOWN_poweroff 0 /* Domain exited normally. Clean up and kill. */ #define SHUTDOWN_reboot 1 /* Clean up, kill, and then restart. */ #define SHUTDOWN_suspend 2 /* Clean up, save suspend info, kill. */ #define SHUTDOWN_crash 3 /* Tell controller we've crashed. */ #endif