Page 3 of 4

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

Posted: Fri May 22, 2020 2:24 pm
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.

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

Posted: Tue May 26, 2020 8:54 am
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.

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

Posted: Tue May 26, 2020 4:59 pm
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.

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

Posted: Thu May 28, 2020 5:11 am
by ppalmer
I sent the zip file to you yesterday.

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

Posted: Thu May 28, 2020 1:00 pm
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.

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

Posted: Fri May 29, 2020 6:38 am
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

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

Posted: Fri May 29, 2020 9:38 am
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.

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

Posted: Mon Jun 01, 2020 7:10 am
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.

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

Posted: Mon Jun 01, 2020 8:24 am
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?

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

Posted: Mon Jun 01, 2020 3:24 pm
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.