Page 1 of 1

check_memory.py plugin usage problem

Posted: Mon Apr 15, 2013 7:46 am
by nagiostool
Hi i have problem while using check_memory.py plugin in Nagios XI.

I'm getting error as

Return code of 127 is out of bounds - plugin may be missing

While running manually from command line its working fine... but from web insterface its giving trouble.

usage is as below.

./check_memory -w <number in MB> -c <number in MB>

Can anyone help me ?

Re: check_memory.py plugin usage problem

Posted: Mon Apr 15, 2013 9:43 am
by slansing
In order to help we need to see your command definition as well as service definition since it works when you run it by hand.

These configuration files can be found in the directories:

Code: Select all

/usr/local/nagios/etc/commands.cfg

/usr/local/nagios/etc/services/<servicename.cfg>
If you can copy out the command which you are using for the service, and paste it here along with the service definition we can take a look!

Re: check_memory.py plugin usage problem

Posted: Thu Apr 17, 2014 10:38 pm
by nagiostool
Thanks all for ur replies.

I got it working.

Re: check_memory.py plugin usage problem

Posted: Fri Apr 18, 2014 9:11 am
by slansing
Great! Thanks for letting us know.