Creating events from the command line interface

To send events from the command line, use the zensendevent command.

Common options include:

  • -d DEVICE, --device=DEVICE
  • -i IPADDRESS, --ipAddress=IPADDRESS
  • -y EVENTKEY, --eventkey=EVENTKEY
  • -p COMPONENT, --component=COMPONENT
  • -o OTHER, --other=OTHER
  • -s SEVERITY, --severity=SEVERITY
  • -c EVENTCLASS, --eventclass=EVENTCLASS
  • -f INPUT_FILE, --file=INPUT_FILE
  1. Log in to the Control Center host as a user with serviced CLI privileges.
  2. Attach to the zenhub service.
    serviced service attach zenhub
  3. Change to the zenoss user.
    su - zenoss
  4. Run the zensendevent command.
    zensendevent Options "Event_Summary_Text"