1 |
|
/* |
2 |
|
* i-scream central monitoring system |
3 |
+ |
* http://www.i-scream.org.uk |
4 |
|
* Copyright (C) 2000-2002 i-scream |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
25 |
|
import java.util.HashMap; |
26 |
|
import uk.org.iscream.cms.server.client.*; |
27 |
|
import uk.org.iscream.cms.server.core.*; |
28 |
< |
import uk.org.iscream.cms.server.util.*; |
28 |
> |
import uk.org.iscream.cms.util.*; |
29 |
|
import uk.org.iscream.cms.server.componentmanager.*; |
30 |
|
|
31 |
|
/** |
61 |
|
* @param packet the XMLPacket to analyse |
62 |
|
*/ |
63 |
|
public void analysePacket(XMLPacket packet) { |
63 |
– |
|
64 |
|
String source = packet.getParam("packet.attributes.machine_name"); |
65 |
+ |
if(!checkBooleanConfig("Host." + source, "Monitor." + _name + ".enable")) { |
66 |
+ |
return; |
67 |
+ |
} |
68 |
|
if (!_hosts.containsKey(source)) { |
69 |
|
HashMap attributeRegisters = new HashMap(); |
70 |
|
initAttributeRegsiters(source, attributeRegisters); |
87 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
88 |
|
* method to provide clean logging (every class should have this). |
89 |
|
* |
90 |
< |
* This uses the uk.org.iscream.cms.server.util.NameFormat class |
90 |
> |
* This uses the uk.org.iscream.cms.util.NameFormat class |
91 |
|
* to format the toString() |
92 |
|
* |
93 |
|
* @return the name of this class and its CVS revision |