Home Directory Plugins Helpdesk and Ticketing check_otrs_tickets.php

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_otrs_tickets.php

Current Version
1.0
Last Release Date
2013-04-09
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
Owner
Hits
40362
Files:
FileDescription
check_otrs_tickets.phpcheck_otrs_tickets.php
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This check returns an amount of tickets via php and php-mysql.

Queues and States are set via script:

## ids (states and queues)
$queue_ids = "42,43,44,48,53,55,68,71,72,77";
$state_ids = "1,4,6,10,12,14,15";

## mysql conn
$mysql_host = "localhost";
$mysql_user = "otrs";
$mysql_pass = "yourpw";
$mysql_db = "otrs";

Usage: /usr/lib/nagios/plugins/check_otrs_tickets.php -w warn -c crit
-w warning limit
-c critical limit
-l states/queues

Samle output:
-l states lists all valid states:
[x] 1 new
[] 2 closed successful
[] 3 closed unsuccessful
[x] 4 in Bearbeitung
[] 5 removed

-l queues lists all valid queues:
[] 3 Junk
[x] 42 First Level Support
[x] 43 Second Level Support
[x] 55 Internal
[x] 44 Third Level Support


-w 5 -c 10
CRITICAL Ticket total is: 75|open=75;10;20