Skip to content

CMDB reminders that open a ticket

A date on a configuration item does nothing by itself. The CMDB notification job turns that date into a ticket, early enough that someone can renew a license, a warranty, or a certificate before it ends.

flowchart LR
  Item["Software license"] --> Date["Expiry date"]
  Date --> Rules["CMDBNotifications::Rules"]
  Rules --> Task["Scheduler task"]
  Task --> Ticket["Ticket in the license queue"]
  Ticket --> Flag["Checkbox: created by CMDB"]
  Ticket --> Link["Link to the configuration item"]

Two system configuration entries, both required:

Setting Role
CMDBNotifications::Rules###… Which items, which date field, which ticket to create
Daemon::SchedulerCronTaskManager::Task###CMDBNotifications When the daemon runs the check

The official package text is short on purpose. The behaviour is: the job looks at config items, and when a rule matches it creates a ticket.

One more field is mandatory. Create a checkbox dynamic field on tickets and name it in the rules. The job sets that checkbox so it can see “this ticket was already created”. The next run must not open a duplicate. If the checkbox is missing, the feature does not work.

  1. On the software or contract class, store a real expiry date. An empty date never matches. See classes and items.
  2. Create a ticket dynamic field of type checkbox, used only as the “already created” marker.
  3. Activate a rule under CMDBNotifications::Rules for that date, the queue that should receive the work, and the checkbox field.
  4. Activate Daemon::SchedulerCronTaskManager::Task###CMDBNotifications and keep the OTOBO daemon running.
  5. When a ticket appears, link it to the configuration item from the zoom menu. The ticket is the work. The item is the asset. See tickets and customers.

Write the subject so the queue understands it without opening the CMDB: License ends 2026-12-01 — Office on srv-file-02. The owner of that queue is the person who renews, not the CMDB manager.

Good ticket Poor ticket
License ends in 30 days Someone edited the hostname
Warranty ends before a refresh A version was saved
Certificate ends next month A link was added
Contract review is due The nightly import ran

Edits already have a version. A ticket is a request that a person do something. If you also mail the queue, use the normal ticket notification on that queue. You do not need a second mail path inside the CMDB.

  • The date on the item is empty or stored as text in a format the rule does not read.
  • The checkbox field is missing from the rule, so the job is not active.
  • The scheduler task is disabled, or the daemon is not running.
  • The rule’s queue or ticket type does not exist, so ticket creation fails. Check the system log around the cron time.
  • A previous ticket still holds the checkbox and you expected a new one. That is the duplicate guard working. Close or clear it only when a new period really needs a new ticket.

Start with one class. A reminder that fires on every computer in the company will train the queue to ignore CMDB mail. A reminder on the twenty licenses that cost money will get read.

Importing those dates from a spreadsheet is the job of import and export. The reminder only runs after the date is on the item.

Frequently asked questions

How do CMDB notifications create a ticket in OTOBO?

The CMDB can create a time-based ticket for a configuration item. A typical case is a task before a license expiry, a warranty end, or a certificate date. You turn the feature on in the system configuration: the rules under CMDBNotifications::Rules, and the scheduler cron task Daemon::SchedulerCronTaskManager::Task###CMDBNotifications.

A checkbox dynamic field on the ticket is mandatory. The job uses it as the marker that this ticket was created automatically, so the same date does not open a second ticket on the next run. Configure that field in the rules. Without the checkbox, the feature does not work.

The ticket then follows your normal queue, owner, and notification setup. The CMDB does not replace the ticket notification; it only creates the ticket on time.

Sources

Which dates are worth a CMDB reminder, and which are not?

Remind on a date that already lives on the configuration item and that a person must act on: license expiry, warranty end, certificate end, or a planned review of a contract item. The date field has to be filled. A reminder on an empty field never fires, and a reminder nobody owns becomes an unread ticket.

Do not remind on every attribute change. Version history already records edits. A ticket is for work, not for a copy of the audit log. Point the new ticket at the item with a link, and name the date in the subject so the queue can sort it.

Start with one class and one date, such as software licenses thirty days before expiry. When that queue stays clean, add the next date. The scheduler task runs on the daemon, so the daemon has to be up.

Sources

Run OTOBO with Softoft

Installation, hosting, updates, and support from one team.