network.events
Class RootPresenceEvent

java.lang.Object
  extended bynetwork.events.Event
      extended bynetwork.events.RootPresenceEvent
All Implemented Interfaces:
java.io.Serializable

public class RootPresenceEvent
extends Event

RootPresenceEvent indicates that root is present on a machine (either by a login (xdm, ssh, su ,etc) or by a process running as root)

See Also:
Serialized Form

Field Summary
protected  java.lang.String args
           
protected  java.lang.String initiatingUser
           
protected  java.net.InetAddress location
           
protected  int pid
           
protected  java.lang.String suStatus
           
protected  java.lang.String targetUser
           
 
Fields inherited from class network.events.Event
agentURN, domainName, eventDeliverTryNumber, priority
 
Constructor Summary
RootPresenceEvent(java.lang.String eventName, long eventGenerationTime, ajanta.naming.URN agentURN, java.net.InetAddress eventLocation, int alertLevel, int alarmLevel)
           
 
Method Summary
 java.lang.String getArgs()
           
 java.lang.String getColumnNames()
           
 java.lang.String getFieldNames()
           
 java.lang.String getFieldValues()
           
 java.lang.String getInitiatingUser()
          Returns the user initiating the su command
 int getPID()
          Returns the process ID of the daemon spawned to handle the root login, or the process ID of the process being run by root
 java.lang.String getRootEventLocation()
          Returns a hostname where root was detected
 java.lang.String getSUStatus()
          Returns the status of the su command
 java.lang.String getTargetUser()
          Returns the user being switched to
 void setArgs(java.lang.String args)
          Sets the command line of the detected root process
 void setInitiatingUser(java.lang.String user)
          Sets the user initiating the su command
 void setPID(int pid)
          Sets the process ID of the daemon spawned to handle the root login, or sets the process ID of the process being run by root
 void setSUStatus(java.lang.String status)
          Sets the status of the su command that was run
 void setTargetUser(java.lang.String user)
          Sets the user being switched to
 java.lang.String toString()
           
 
Methods inherited from class network.events.Event
createSQL, getAgentURN, getAlarmLevel, getAlertLevel, getDomainName, getEventDeliverTryNumber, getEventGenerationTime, getEventID, getEventLocation, getID, getINTMonth, getMyClass, getName, getSQLTime, getSQLTime, setAlarmLevel, setAlertLevel, setDomainName, setEventID, setPriority, toSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

initiatingUser

protected java.lang.String initiatingUser

targetUser

protected java.lang.String targetUser

suStatus

protected java.lang.String suStatus

location

protected java.net.InetAddress location

pid

protected int pid

args

protected java.lang.String args
Constructor Detail

RootPresenceEvent

public RootPresenceEvent(java.lang.String eventName,
                         long eventGenerationTime,
                         ajanta.naming.URN agentURN,
                         java.net.InetAddress eventLocation,
                         int alertLevel,
                         int alarmLevel)
Parameters:
eventName - The name of this event
eventGenerationTime - The time at which this event was generated
agentURN - The URN of the agent reporting this event
eventLocation - The address of the machine where root was detected
alertLevel - The alert level of this event
alarmLevel - The alarm level of this event
Method Detail

setSUStatus

public void setSUStatus(java.lang.String status)
Sets the status of the su command that was run

Parameters:
status - A string determining if the su command was successful
Returns:

getSUStatus

public java.lang.String getSUStatus()
Returns the status of the su command

Returns:
A string determining if the su command was successful or not

setInitiatingUser

public void setInitiatingUser(java.lang.String user)
Sets the user initiating the su command

Parameters:
user - A username
Returns:

setTargetUser

public void setTargetUser(java.lang.String user)
Sets the user being switched to

Parameters:
user - A username
Returns:

getInitiatingUser

public java.lang.String getInitiatingUser()
Returns the user initiating the su command

Returns:
A username

getTargetUser

public java.lang.String getTargetUser()
Returns the user being switched to

Returns:
A username

getRootEventLocation

public java.lang.String getRootEventLocation()
Returns a hostname where root was detected

Returns:
A string containing the hostname of the machine where root was deteced

setPID

public void setPID(int pid)
Sets the process ID of the daemon spawned to handle the root login, or sets the process ID of the process being run by root

Parameters:
pid - A process ID

setArgs

public void setArgs(java.lang.String args)
Sets the command line of the detected root process

Parameters:
args -
Returns:

getPID

public int getPID()
Returns the process ID of the daemon spawned to handle the root login, or the process ID of the process being run by root

Returns:

getArgs

public java.lang.String getArgs()
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class Event
Returns:

getColumnNames

public java.lang.String getColumnNames()
Overrides:
getColumnNames in class Event
Returns:

getFieldNames

public java.lang.String getFieldNames()
Overrides:
getFieldNames in class Event
Returns:

getFieldValues

public java.lang.String getFieldValues()
Overrides:
getFieldValues in class Event
Returns: