SMP has the error “(Return code of 127 is out of bounds. Che

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by cdienger »

Does /export/home/nagios/ exist? Please provide a directory listing with "ls -alhR /export/home/nagios > dirlist.txt" and provide the dirlist.txt it creates.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by ppalmer »

cdienger wrote:Does /export/home/nagios/ exist? Please provide a directory listing with "ls -alhR /export/home/nagios > dirlist.txt" and provide the dirlist.txt it creates.
Yes /export/home/nagios does exist. I have attached the drlist file.

Thanks.
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by cdienger »

Please PM a copy of the current CCM database. This can be gathered with:

Code: Select all

mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
Please zip the nagiosql.sql that this creates and PM me the zip file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by ppalmer »

I sent the zip file to you yesterday.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by cdienger »

The database dump that was provided only contained a single host so I'm not sure what is going on with the database setup. Perhaps you ran it on the wrong machine or your predecessor has set things up to work with another database?

That said, check under Configure > Core Config Manager > Monitoring > Hosts, for the dpmapp_svr1 host. Edit it and click the "Check Settings" tab and set the Check interval setting to 5, the Retry interval setting to 1, and the Max check attempts setting to 5. Then save and try applying again.

If that doesn't work, try disabling the dpmapp_svr1 host and its services and let us know if that allows it to work.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by ppalmer »

cdienger wrote:The database dump that was provided only contained a single host so I'm not sure what is going on with the database setup. Perhaps you ran it on the wrong machine or your predecessor has set things up to work with another database?

That said, check under Configure > Core Config Manager > Monitoring > Hosts, for the dpmapp_svr1 host. Edit it and click the "Check Settings" tab and set the Check interval setting to 5, the Retry interval setting to 1, and the Max check attempts setting to 5. Then save and try applying again.

If that doesn't work, try disabling the dpmapp_svr1 host and its services and let us know if that allows it to work.
Under hosts on the core config manager we only have the local hosts smpnagios-kn-u1 in this case, I have checked another of our Nagios instances and it has been configured the same way so I am unable to make the chanes that you have suggested. Is this not normal?

Regards,

Paul
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by cdienger »

Yes, this is a very unusual setup but I think I'm understanding it a little now.

Per the messagers there are errors in these files:

/export/home/nagios/sigma_nagios/dpmapp_svr1.cfg
/export/home/nagios/sigma_nagios/commands.cfg

Please review them and PM a copy of the entire /export/home/nagios/sigma_nagios/ to me if you you need assistance correcting the files.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by ppalmer »

cdienger wrote:Yes, this is a very unusual setup but I think I'm understanding it a little now.

Per the messagers there are errors in these files:

/export/home/nagios/sigma_nagios/dpmapp_svr1.cfg
/export/home/nagios/sigma_nagios/commands.cfg

Please review them and PM a copy of the entire /export/home/nagios/sigma_nagios/ to me if you you need assistance correcting the files.
commands.cfg looks OK

# 'check_component_status' command definition
define command{
command_name check_component_status
command_line (cd $USER10$/plugins && ./check_component_status $ARG1$
$ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ -cn $ARG7$)

I have zipped up that directory and I will try and PM it to you.

Thanks.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by ppalmer »

The contents of that directory zipped is 64MB, is there anything that you don't need that would bring the file size down?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SMP has the error “(Return code of 127 is out of bounds.

Post by cdienger »

Please open a ticket at https://support.nagios.com/tickets/ and reference this forum post. I will take ownership of the ticket and then we can schedule a time to do a remote session if that works for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked