OpenSIPs memory check in Nagios

Posted on: 2011-09-29 | Categories: Uncategorized

We use OpenSIPs as a core component of our SIP network and it is critical it runs and is healthy at all times. Important factor which might impact OpenSIPs operation is it’s memory usage. No matter how much RAM is installed in your server, OpenSIPs will only use the amount of private memory as defined during compilation (1MB by default) and shared memory pool as set by command line option (32MB by default). Both values are sufficient for a small population of users, but might not be enough for larger installations.

Our tool of choice for monitoring our network and services is excellent Open Source Nagios. Unfortunately there was no plugin that would allow to check OpenSIPs memory usage. Therefore we had no choice, but to write one. You can find it here:

[wpdm_file id=11]

Installation

The only requirements are php5 along php5-xmlrpc module present on the machine where plugin runs.

Usage

The usage is very similar to many other Nagios plugins. You need to provide location of your OpenSIPs XML RPC socket and Shared and Private memory Warning and Critical alert levels.