Page 1 of 3

Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 6:04 am
by siriideepak
Hi,

I backed up nagiosxi from 32 bit machine and restored in 64 bit machine(RHEL6). Everything is working fine but the plugins shows error Return code 127 is out of bounds - plugin may be missing. but the plugin works from the command line but through nagios xi it returns error. what is the solution for this. Shall i remove and reconfigure the host. Kindly reply asap. Thanks!!

Regards,
Deepak.P

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 9:14 am
by slansing
Can you list the permissions for your plugin?:

Code: Select all

ll -la /usr/local/nagios/libexec/check-netapp-ng.pl

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 10:51 am
by siriideepak
Hi,

Please find the attached screenshot permissions of the plugin. Kindly update.

Regards,
Deepak.P

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 10:59 am
by slansing
Please run:

Code: Select all

chown apache:nagios /usr/local/nagios/libexec/check-netapp-ng.pl
This should fix the permissions.

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 11:07 am
by siriideepak
Hi,

Till the same problem persists it is working fine with command line as i mentioned earlier. What was the problem. Kindly tell me if any details you want.

Regards,
Deepak.P

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 11:13 am
by siriideepak
Hi,

Please find the attached screenshot of the plugin is it correct.

Regards,
Deepak.P

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 11:19 am
by slansing
Does /usr/bin/perl5.8.8 exist on your new installation? Or is it a different perl version? Did you make sure to set up any special dependencies for this plugin that you had on your old system?

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 11:26 am
by siriideepak
Hi,

There is no perl5.8.8 it is prl 5.10.1 what can i do now?

Regards,
Deepak.P

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 11:32 am
by tmcdonald
Start by changing your perl version in the command:

/usr/bin/perl5.10.1 $USER1$/check-netapp-ng.pl

and of course keep the arguments as they are.

Re: Plugin not connecting after restoration

Posted: Mon Oct 07, 2013 11:37 am
by siriideepak
Hi,

As per your advice i changed now its changed to null. Kindly update.

Regards,
Deepak.P