Creating Events from the Command Line

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

  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 zensendsevent command.
zensendevent Options "Event_Summary_Text"

Common options include:

  • -d DEVICE, --device=DEVICE

  • -i IPADDRESS, --ipAddress=IPADDRESS

  • -y EVENTKEY, --eventkey=EVENTKEY

  • -p COMPONENT, --component=COMPONENT

  • -k EVENTCLASSKEY, --eventclasskey=EVENTCLASSKEY

  • -o OTHER, --other=OTHER

  • -s SEVERITY, --severity=SEVERITY

  • -c EVENTCLASS, --eventclass=EVENTCLASS

  • -f INPUT_FILE, --file=INPUT_FILE