OTRS

check_otrs.php

Description:

A plugin to check an OTRS database for tickets with specified queue and ticket state.

Current Version

Last Release Date

2008-12-29

Compatible With


Project Files
Project Notes
Requirements:
  • php for cli
  • php with mysql support

Tested with otrs-version 2.0.4.

check_otrs.php v0.1 (29 Dezember, 2008)

Count tickets in otrs

Usage:check_otrs.php -H host -u user -p pass -d dbname -q queuename -t type [-w ] [-c ] [-l ] [-h]

Options:

-h
Print help screen
-H
MySql hostname
-u
MySql user
-p
MySql pass
-d
MySql db-name
-q
Queue to query
-t
Type to query by typing the ID (for example 4 = open tickets in default configuration)
You also can use "*" for all types, by using double quotes. [default]

-w
Warning
-c
Critical
-l
Query to mysql database from otrs to inform about available queues or types.
MySql information are required.

Example:

check_otrs.php -H 192.168.1.2 -d otrs -u someuser -p somepass -t 4 -q Hardware::Drucker -w 5 -c 9
8 Tickets in queue Hardware::Drucker from type open|Hardware::Drucker=8;5;9;0;
check_otrs.php -H 192.168.1.2 -d otrs -u someuser -p somepass -q Hardware::Drucker
751 Tickets in queue Hardware::Drucker from type |Hardware::Drucker=751;0;0;0;
check_otrs.php -H 192.168.1.2 -d otrs -u someuser -p somepass -l type
1 new
2 closed successful
3 closed unsuccessful
4 open
5 removed
6 pending reminder
7 pending auto close+
8 pending auto close-
9 merged
check_otrs.php -H 192.168.1.2 -d otrs -u someuser -p somepass -l queue
1 Raw
2 Drucker
3 System::Linux 
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
101,143