OpenSIPs memory check in Nagios

posted by Chris on 2011-09-29 07:47:40

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:

check_opensips_mem.gz

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.

opensips-mem.php -s <XML_RPC_host> -p <XML_RPC_port> 
    -sw <shmem warning KB> -sc <shmem critical KB> 
    -pw <pkmem warning KB> -pc <pkmem critical KB>



Leave Your Comment

Your name: *
Your Email: *   Will not be published
Your comment: *
Captcha image
To help us prevent automated abuse of this service
please enter the text displayed in the image above: *



All submitted reviews/comments become the licensed property of Level 7 Systems Ltd.

Categories

Enter your email address:

Delivered by FeedBurner

RSS Feed Subscribe with in your feed reader