|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.vulnscand.Vulnscand
Vulnerability scanning daemon. This process is used to provide continual scans of target interfaces that identify possible security holes. The vulnerability scanner that this version uses to identify security flaws is Nessus 1.1.X (www.nessus.org).
This code is adapted from the capsd code because its behavior is quite similar; it continually scans the target ranges, enters the scan results into a database table, and also supports rescans whose threads are pulled from a separate thread pool so that they occur immediately.
Field Summary | |
private static java.lang.String |
FIBER_NAME
The prefix for the fiber name. |
private static java.lang.String |
LOG4J_CATEGORY
The log4j category used to log messages. |
private static java.lang.String |
m_address
Contains dotted-decimal representation of the IP address where Vulnscand is running. |
private static java.lang.Object |
m_dbSyncLock
Database synchronization lock for synchronizing write access to the database between the SpecificScanProcessor and RescanProcessor thread pools |
private BroadcastEventProcessor |
m_receiver
Event receiver. |
private RunnableConsumerThreadPool |
m_scheduledScanRunner
The pool of threads that are used to executed RescanProcessor instances queued by the rescan scheduler thread. |
private Scheduler |
m_scheduler
Rescan scheduler thread |
private static Vulnscand |
m_singleton
Singleton instance of the Vulnscand class |
private RunnableConsumerThreadPool |
m_specificScanRunner
The pool of threads that are used to executed the SpecificScanProcessor instances queued by the event processor (BroadcastEventProcessor). |
private int |
m_status
Current status of this fiber |
Fields inherited from interface org.opennms.core.fiber.PausableFiber |
PAUSE_PENDING, PAUSED, RESUME_PENDING |
Fields inherited from interface org.opennms.core.fiber.Fiber |
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED |
Constructor Summary | |
Vulnscand()
Constructs the Vulnscand objec |
Method Summary | |
(package private) static java.lang.Object |
getDbSyncLock()
|
static Vulnscand |
getInstance()
|
static java.lang.String |
getLocalHostAddress()
Used to retrieve the local host name/address. |
java.lang.String |
getName()
Returns a name/id for this process |
int |
getStatus()
Returns the current status |
void |
pause()
This method is used to suspend a currently running Fiber |
void |
resume()
This method is used to resume a suspeneded Fiber . |
void |
start()
Start the Vulnscand threads. |
void |
stop()
Stop the Vulnscand threads. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String LOG4J_CATEGORY
private static final java.lang.String FIBER_NAME
private static final Vulnscand m_singleton
private int m_status
private static java.lang.Object m_dbSyncLock
private static java.lang.String m_address
Contains dotted-decimal representation of the IP address where Vulnscand is running. Used when vulnscand sends events out
private Scheduler m_scheduler
private BroadcastEventProcessor m_receiver
private RunnableConsumerThreadPool m_specificScanRunner
private RunnableConsumerThreadPool m_scheduledScanRunner
Constructor Detail |
public Vulnscand()
Method Detail |
public void stop()
stop
in interface Fiber
public void start()
start
in interface Fiber
public void pause()
PausableFiber
Fiber.
When invoked the Fiber
will begin the transition to
a PAUSED
status after changing its internal state, if
applicable.
- Specified by:
pause
in interface PausableFiber
public void resume()
PausableFiber
Fiber
. If the
thread is already running then this method should have no effect on the
current Fiber
.
resume
in interface PausableFiber
public java.lang.String getName()
getName
in interface Fiber
Fiber
.public int getStatus()
getStatus
in interface Fiber
Fiber
.public static java.lang.String getLocalHostAddress()
public static Vulnscand getInstance()
static java.lang.Object getDbSyncLock()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |