Error: api_tool.php on line 138

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Error: api_tool.php on line 138

Post by morabanc »

Hi guys,

Our Nagios has a full disk and the cause is this log file:

- /usr/local/nagiosxi/var/cmdsubsys.log

The information of that file is:

- PHP Warning: Illegal string offset 'is_currently_running' in /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php on line 138

Script line 138:

Code: Select all

        // Verify ndo and core are running and loaded
        $data = get_program_status_xml_output(array(), true);
        if ($data['is_currently_running'] == 1) {
            $is_running = true;
        } else {
            sleep(1);
        }
Can you help us please ?


Thanks
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Error: api_tool.php on line 138

Post by morabanc »

I solve the problem restarting all services amd reconfigure nagios.

but now i have another problem, i don't know why my nagiosql.tbl_lnkServiceToServicetemplate was erased.

For this reason i can't specify templates in my services.

I try to create manually the table (create table... and with mysqldump) but don't work.

Code: Select all

ERROR 1146 (42S02) at line 1: Table 'nagiosql.tbl_lnkServiceToServicetemplate' doesn't exist
Any idea ?

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: api_tool.php on line 138

Post by scottwilkerson »

Do you have a recent backup you can restore?

If not, that database is also restored if you can restore a previous snapshot
CCM -> Configuration Snapshots
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Error: api_tool.php on line 138

Post by morabanc »

Hi Scott,

Nice help !! :)


Regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: api_tool.php on line 138

Post by scottwilkerson »

morabanc wrote:Hi Scott,

Nice help !! :)


Regards
May we mark this issue as resolved?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked