conga/ricci/modules/cluster/clumon/src cim-pro ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-18 20:16:28
Modified files:
ricci/modules/cluster/clumon/src/cim-provider:
ClusterProvider.cpp ClusterProvider.h ClusterProviderMain.cpp SmartHandler.h clusterCIM_test.cpp clusterCIM_test.h
ricci/modules/cluster/clumon/src/common: Cluster.cpp
ClusterMonitor.cpp Node.cpp Service.cpp
ricci/modules/cluster/clumon/src/daemon: Communicator.cpp
Communicator.h Monitor.cpp Monitor.h Peer.cpp Peer.h main.cpp
ricci/modules/cluster/clumon/src/include: Cluster.h
ClusterMonitor.h clumond_globals.h
ricci/modules/cluster/clumon/src/snmp-agent: clusterMIB.cpp
clusterMIB.h clusterMonitorSnmp.cpp clusterMonitorSnmp.h nodesMIB.cpp nodesMIB.h nodesMIB_access.cpp nodesMIB_access.h nodesMIB_checkfns.h nodesMIB_checkfns_local.cpp nodesMIB_checkfns_local.h nodesMIB_columns.h nodesMIB_enums.h servicesMIB.cpp servicesMIB.h servicesMIB_access.cpp servicesMIB_access.h servicesMIB_checkfns.h servicesMIB_checkfns_local.cpp servicesMIB_checkfns_local.h servicesMIB_columns.h servicesMIB_enums.h
Log message:
- Update license text
- Cleanup includes
- Cleanup code to make it readable
- Fix a compile error (I don't know how it ever compiled) caused by arithmetic on a void * in C++ code.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/cim-provider/ClusterProvider.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/cim-provider/ClusterProvider.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/cim-provider/ClusterProviderMain.cpp.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/cim-provider/SmartHandler.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/cim-provider/clusterCIM_test.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/cim-provider/clusterCIM_test.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/Cluster.cpp.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/ClusterMonitor.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/Node.cpp.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/Service.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Communicator.cpp.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Communicator.h.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Monitor.cpp.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Monitor.h.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Peer.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Peer.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/main.cpp.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/include/Cluster.h.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/include/ClusterMonitor.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/include/clumond_globals.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/clusterMIB.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/clusterMIB.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_access.cpp.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_access.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_checkfns.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_checkfns_local.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_checkfns_local.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_columns.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_enums.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_access.cpp.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_access.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_checkfns.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_checkfns_local.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_checkfns_local.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_columns.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_enums.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
ricci/modules/cluster/clumon/src/cim-provider/ClusterProvider.cpp +17 -27
@@ -1,26 +1,25 @@ /* - Copyright Red Hat, Inc. 2005 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "ClusterProvider.h" #include "SmartHandler.h" #include "Cluster.h"
@@ -38,14 +37,10 @@ #include <functional> #include <vector> - - using namespace std; using namespace Pegasus; using namespace ClusterMonitoring; - - static CIMInstance buildClusterInstance(counting_auto_ptr<Cluster>& cluster, Boolean qual, Boolean orig); static CIMInstance
@@ -53,7 +48,6 @@ static CIMInstance buildServiceInstance(counting_auto_ptr<Service>& service, Boolean qual, Boolean orig); - static CIMObjectPath buildClusterInstancePath(counting_auto_ptr<Cluster>& cluster, const CIMNamespaceName& nameSpace); static CIMObjectPath
@@ -61,9 +55,7 @@ static CIMObjectPath buildServiceInstancePath(counting_auto_ptr<Service>& service, const CIMNamespaceName& nameSpace); - -static Pegasus::String -hostname(void); +static Pegasus::String hostname(void); ClusterProvider::ClusterProvider(void) throw()
@@ -77,7 +69,6 @@ set_logger(counting_auto_ptr<Logger>(new Logger())); } - // CIMProvider interface void ClusterProvider::initialize (CIMOMHandle& cimom)
@@ -92,7 +83,6 @@ delete this; } - // CIMInstanceProvider interface void ClusterProvider::getInstance(const OperationContext &context,
ricci/modules/cluster/clumon/src/cim-provider/ClusterProvider.h +117 -115
259 lines not on this page · raw message
ricci/modules/cluster/clumon/src/cim-provider/ClusterProviderMain.cpp +20 -23
60 lines not on this page · raw message
ricci/modules/cluster/clumon/src/cim-provider/SmartHandler.h +26 -32
74 lines not on this page · raw message
ricci/modules/cluster/clumon/src/cim-provider/clusterCIM_test.cpp +132 -127
293 lines not on this page · raw message
ricci/modules/cluster/clumon/src/cim-provider/clusterCIM_test.h +20 -6
@@ -1,23 +1,37 @@ -#ifndef ClusterClient_h -#define ClusterClient_h +/* +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. +*/ + +#ifndef __CONGA_MODCLUSTER_CIM_TEST_H +#define __CONGA_MODCLUSTER_CIM_TEST_H#include <Pegasus/Common/Config.h> #include <Pegasus/Common/CIMInstance.h> #include <Pegasus/Client/CIMClient.h> -PEGASUS_USING_PEGASUS ;PEGASUS_USING_STD ; -#define PEGASUS_PORT 5989 - void printClusters(CIMClient& client); void printNodes(CIMClient& client); void printServices(CIMClient& client); void printInstance(string tab, CIMInstance& inst); -#endif
ricci/modules/cluster/clumon/src/common/Cluster.cpp +16 -17
@@ -1,26 +1,25 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "Cluster.h" #include <stdio.h>
ricci/modules/cluster/clumon/src/common/ClusterMonitor.cpp +17 -20
@@ -1,37 +1,34 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "ClusterMonitor.h" #include "Socket.h" #include "Time.h" -#include <sys/poll.h> #include <errno.h> - +#include <sys/poll.h> using namespace ClusterMonitoring; - ClusterMonitor::ClusterMonitor(const String& socket_path) : _sock_path(socket_path) {}
ricci/modules/cluster/clumon/src/common/Node.cpp +16 -17
@@ -1,26 +1,25 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "Cluster.h" using namespace std;
ricci/modules/cluster/clumon/src/common/Service.cpp +16 -19
@@ -1,33 +1,30 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "Cluster.h" - using namespace ClusterMonitoring; using namespace std; - Service::Service(const String& name, const String& clustername, const Node& node,
ricci/modules/cluster/clumon/src/daemon/Communicator.cpp +16 -19
@@ -1,26 +1,25 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "Communicator.h" #include "array_auto_ptr.h" #include "Logger.h"
@@ -38,14 +37,12 @@ using namespace ClusterMonitoring; using namespace std; - CommDP::CommDP() {} CommDP::~CommDP() {} - Communicator::Communicator(unsigned short port, CommDP& delivery_point) : _port(port), _serv_sock(_port),
ricci/modules/cluster/clumon/src/daemon/Communicator.h +18 -21
@@ -1,28 +1,27 @@/* -Copyright Red Hat, Inc. 2005-2007 - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -This program 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 -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 675 Mass Ave, Cambridge, -MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ +/* * Author: Stanko Kupcevic <[email protected]> */ - -#ifndef __CONGA_CLUSTER_COMMUNICATOR_H -#define __CONGA_CLUSTER_COMMUNICATOR_H +#ifndef __CONGA_MODCLUSTERD_COMMUNICATOR_H +#define __CONGA_MODCLUSTERD_COMMUNICATOR_H#include "Thread.h" #include "Mutex.h"
@@ -33,7 +32,6 @@#include <vector> #include <map> -namespace ClusterMonitoring {
@@ -81,7 +79,6 @@ Communicator& operator= (const Communicator&); }; - };#endif
ricci/modules/cluster/clumon/src/daemon/Monitor.cpp +16 -18
@@ -1,26 +1,25 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "Monitor.h" #include "executils.h" #include "Logger.h"
@@ -33,7 +32,6 @@ #include <algorithm> - using namespace ClusterMonitoring; using namespace std;
ricci/modules/cluster/clumon/src/daemon/Monitor.h +18 -19
@@ -1,28 +1,27 @@/* -Copyright Red Hat, Inc. 2005-2007 - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -This program 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 -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 675 Mass Ave, Cambridge, -MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ +/* * Author: Stanko Kupcevic <[email protected]> */ - -#ifndef __CONGA_CLUSTER_MONITOR_H -#define __CONGA_CLUSTER_MONITOR_H +#ifndef __CONGA_MODCLUSTERD_MONITOR_H +#define __CONGA_MODCLUSTERD_MONITOR_H#include "String.h" #include <map>
ricci/modules/cluster/clumon/src/daemon/Peer.cpp +16 -17
@@ -1,26 +1,25 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include "Peer.h" #include "Logger.h"
ricci/modules/cluster/clumon/src/daemon/Peer.h +18 -19
@@ -1,27 +1,27 @@/* -Copyright Red Hat, Inc. 2005-2007 - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -This program 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 -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 675 Mass Ave, Cambridge, -MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ +/* * Author: Stanko Kupcevic <[email protected]> */ -#ifndef __CONGA_CLUSTER_PEER_H -#define __CONGA_CLUSTER_PEER_H +#ifndef __CONGA_MODCLUSTERD_PEER_H +#define __CONGA_MODCLUSTERD_PEER_H#include "counting_auto_ptr.h" #include "Socket.h"
@@ -29,7 +29,6 @@#include <vector> #include "String.h" -namespace ClusterMonitoring {
ricci/modules/cluster/clumon/src/daemon/main.cpp +16 -17
@@ -1,26 +1,25 @@ /* - Copyright Red Hat, Inc. 2005-2007 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ - #include <unistd.h> #include <sys/types.h> #include <signal.h>
ricci/modules/cluster/clumon/src/include/Cluster.h +18 -21
@@ -1,28 +1,27 @@/* -Copyright Red Hat, Inc. 2005-2007 - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -This program 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 -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 675 Mass Ave, Cambridge, -MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ +/* * Author: Stanko Kupcevic <[email protected]> */ - -#ifndef __CONGA_MODCLUSTER_CLUSTER_H -#define __CONGA_MODCLUSTER_CLUSTER_H +#ifndef __CONGA_MODCLUSTERD_CLUSTER_H +#define __CONGA_MODCLUSTERD_CLUSTER_H#include <counting_auto_ptr.h> #include "String.h"
@@ -31,7 +30,6 @@#include "XML.h" -namespace ClusterMonitoring {
@@ -39,7 +37,6 @@class Service;class Cluster; - String cluster2xml(Cluster& cluster); counting_auto_ptr<Cluster> xml2cluster(const String& xml);
ricci/modules/cluster/clumon/src/include/ClusterMonitor.h +18 -20
@@ -1,28 +1,27 @@/* -Copyright Red Hat, Inc. 2005-2007 - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -This program 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 -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 675 Mass Ave, Cambridge, -MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ +/* * Author: Stanko Kupcevic <[email protected]> */ - -#ifndef __CONGA_CLUSTERMONITOR_H -#define __CONGA_CLUSTERMONITOR_H +#ifndef __CONGA_MODCLUSTERD_CLUSTERMONITOR_H +#define __CONGA_MODCLUSTERD_CLUSTERMONITOR_H#include "Cluster.h" #include "counting_auto_ptr.h"
@@ -30,7 +29,6 @@#include "String.h" -namespace ClusterMonitoring {
ricci/modules/cluster/clumon/src/include/clumond_globals.h +18 -20
@@ -1,29 +1,27 @@/* -Copyright Red Hat, Inc. 2005-2007 - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -This program 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 -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 675 Mass Ave, Cambridge, -MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ +/* * Author: Stanko Kupcevic <[email protected]> */ - -#ifndef clumond_globals_h -#define clumond_globals_h - +#ifndef __CONGA_MODCLUSTERD_GLOBALS_H +#define __CONGA_MODCLUSTERD_GLOBALS_H#define COMMUNICATION_PORT 16851#define MONITORING_CLIENT_SOCKET "/var/run/clumond.sock"
ricci/modules/cluster/clumon/src/snmp-agent/clusterMIB.cpp +17 -17
@@ -1,27 +1,27 @@ /* - Copyright Red Hat, Inc. 2005 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ /* * Note: this file originally auto-generated by mib2c using - * : mib2c.scalar.conf,v 1.7 2003/04/08 14:57:04 dts12 Exp $ + * : mib2c.scalar.conf,v 1.7 2003/04/08 14:57:04 dts12 Exp $ */
ricci/modules/cluster/clumon/src/snmp-agent/clusterMIB.h +41 -45
107 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.cpp +22 -25
66 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.h +20 -22
59 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB.cpp +277 -291
618 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB.h +31 -34
87 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_access.cpp +16 -16
@@ -1,21 +1,21 @@ /* - Copyright Red Hat, Inc. 2005 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_access.h +38 -37
93 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_checkfns.h +8 -9
@@ -9,19 +9,18 @@* (so that you can regenerate this one as mib2c improvements are made) ***********************************************************************/ -#ifndef nodesMIB_checkfns_h -#define nodesMIB_checkfns_h +#ifndef __CONGA_MODCLUSTER_SNMP_NODESMIB_CHECKFNS_H +#define __CONGA_MODCLUSTER_SNMP_NODESMIB_CHECKFNS_Hextern "C" {/** make sure we load the functions that you can modify */ config_require (rhcNodesTable_checkfns_local) -/* -* these functions are designed to check incoming values for -* columns in the rhcNodesTable table for legality with respect to -* datatype and value. - */ +/* +* these functions are designed to check incoming values for +* columns in the rhcNodesTable table for legality with respect to +* datatype and value. + */ }; - -#endif // nodesMIB_checkfns_h +#endif
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_checkfns_local.cpp +17 -18
@@ -1,30 +1,29 @@ /* - Copyright Red Hat, Inc. 2005 - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, - MA 02139, USA. +** Copyright (C) Red Hat, Inc. 2005-2007 +** +** This program is free software; you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 2 as +** published by the Free Software Foundation. +** +** This program 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 +** General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; see the file COPYING. If not, write to the +** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +** MA 02139, USA. */ + /* * Author: Stanko Kupcevic <[email protected]> */ /* * Note: this file originally auto-generated by mib2c using - * : mib2c.check_values_local.conf,v 5.1.2.1 2004/05/04 23:35:32 hardaker Exp $ + * : mib2c.check_values_local.conf,v 5.1.2.1 2004/05/04 23:35:32 hardaker Exp $ */ - #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h>
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_checkfns_local.h +22 -24
67 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_columns.h +23 -26
65 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/nodesMIB_enums.h +20 -23
53 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB.cpp +278 -283
120 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB.h +28 -31
59 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_access.cpp +17 -21
Lines of this file are not shown. View the raw message.
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_access.h +38 -39
77 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_checkfns.h +3 -3
Lines of this file are not shown. View the raw message.
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_checkfns_local.cpp +17 -18
Lines of this file are not shown. View the raw message.
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_checkfns_local.h +22 -23
45 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_columns.h +24 -25
49 lines not on this page · raw message
ricci/modules/cluster/clumon/src/snmp-agent/servicesMIB_enums.h +20 -21
41 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.