Re: 5.6.5 Upgrade - PHP warning.
Posted: Mon Jul 29, 2019 8:48 am
Config file exceeds the char limit on this forum. I've sent a copy of the file in a PM.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
magic_quotes_gpc = Off
magic_quotes_runtime = OffCode: Select all
service httpd restartAs per your instruction. I then navigate to Admin > System Extensions > Manage MIBs, and click the Process All Traps button.tgriep wrote:Edit the /etc/php.ini file and comment out the following 2 options.Save the change and restart Apache.Code: Select all
magic_quotes_gpc = Off magic_quotes_runtime = OffProcess a MIB file and see if the error is resolved.Code: Select all
service httpd restart
Those settings affect how certain characters in strings are escaped and they seem to be effecting the SQL queries.
Code: Select all
SQL Error [nagiosxi] : ERROR: syntax error at or near "SET"
LINE 1: INSERT INTO xi_mibs SET mib_type = 'process_nxti' , mib_uplo...
^Code: Select all
echo "\d xi_mibs" | psql nagiosxi nagiosxi
echo "\dT+;"|psql nagiosxi nagiosxi
ls -lR /usr/share/snmp/mibsCode: Select all
/var/lib/pgsql/data/postgresql.confCode: Select all
tail -f /var/log/httpd/*_logCode: Select all
Table "public.xi_mibs"
Column | Type | Modifiers
--------------------+-----------------------------+----------------------------------------------------------
mib_id | integer | not null default nextval('xi_mibs_mib_id_seq'::regclass)
mib_name | character varying(64) | not null
mib_uploaded | timestamp without time zone |
mib_last_processed | timestamp without time zone |
mib_type | e_mib_type |
Indexes:
"xi_mibs_pkey" PRIMARY KEY, btree (mib_id)
"xi_mibs_mib_name_key" UNIQUE, btree (mib_name)Code: Select all
List of data types
Schema | Name | Internal name | Size | Elements | Description
--------+------------+---------------+------+----------------+-------------
public | e_mib_type | e_mib_type | 4 | upload |
: process_manual
: process_nxti
(1 row)