Home Directory Plugins Telephony Asterisk check_asterisk_odbc_connections

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_asterisk_odbc_connections

Rating
1 vote
Favoured:
0
Hits
95111
Files:
FileDescription
check_asterisk_odbc_connectionscheck_asterisk_odbc_connections
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This plugin tests the connectivity of ODBC databases configured via Asterisk's res_odbc.conf file.
Usage: check_asterisk_odbc_connections [--databases | -d ] [-V]
Usage: check_asterisk_odbc_connections --help | -h

Description:

This plugin tests the connectivity of ODBC databases configured via Asterisk's
res_odbc.conf file.

Tested to work on Linux.

The following arguments are accepted:

--databases | -d (Optional) A space separated list of ODBC databases to
check. The names are the section names of the databases
listed in the res_odbc.conf Asterisk configuration file.
If this option is left out, then all configured databases
will be checked.

-V (Optional) Output verbose information, useful for
debugging.

--help | -h Print this help and exit.

Examples:

Check all configured Asterisk ODBC databases:

check_asterisk_odbc_connections

Check the 'foo' and 'bar' connections:

check_asterisk_odbc_connections "foo bar"


Caveats:

This plugin calls the asterisk executable directly, so make sure that the user
executing this script has appropriate permissions! Usually the asterisk binary
can only be run by the asterisk user or root. To grant the nagios user
permissions to execute the script, try something like the following in your
/etc/sudoers file:
nagios ALL=(ALL) NOPASSWD: /path/to/plugins/directory/check_asterisk_odbc_connections

Then call the plugin using sudo:
/path/to/sudo check_asterisk_odbc_connections
Reviews (1)
byNathan79, September 29, 2014
Following installation note I don't was been unable to run the plugin properly: I've done two little modifications in my sistem, please see footer:
1. on script row #168 I've modified text
grep "^Connected: yes$"
with this one
grep "Connected: Yes"
2. After that on Nagios i receiving this output : "NRPE: Unable to read output"
To solve there is to comment row
Defaults requiretty
in etc/sudoers file.

Centos 6.5 x64 | Nagios 3.5.1
Thanks for the plugin!