check_memory.py plugin usage problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

check_memory.py plugin usage problem

Post 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 ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_memory.py plugin usage problem

Post 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!
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: check_memory.py plugin usage problem

Post by nagiostool »

Thanks all for ur replies.

I got it working.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_memory.py plugin usage problem

Post by slansing »

Great! Thanks for letting us know.
Locked