Hello,
I have the following configuration:
OS: RHEL 7.9, kernel 3.10
PHP: 7.4.27
nagios: core 4.4.6
Mysql: MariaDB 10.7.1
pnp4nagios: 0.6.25
I succeeded to make it run on PHP 7.4 after I replaced all the references to get_magic_quotes like this:
sed -i "s/get_magic_quotes_runtime()/version_compare(PHP_VERSION, '5.3.0', '<') \&\& get_magic_quotes_runtime()/" file
sed -i "s/get_magic_quotes_gpc()/version_compare(PHP_VERSION, '5.3.0', '<') \&\& get_magic_quotes_gpc()/" file
and some other small issues that triggered php warnings/errors.
Then I imported the configurations from the old host running Nagiosql 3.2 and nagios 3.5.1 (I think) by importing the old /etc/nagiosql directory and then fixing all the complains.
Now I am in the situation where all my service checks are run on all the machines and I do not want that. However, even if I select individual hosts in the service definition, after I save, write config and check nagios conf, restart nagios...all my hosts are gone from the service definition.
Can you please help me with an advice?
Thank you,
Stefanita Vilcu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have the following configuration:
OS: RHEL 7.9, kernel 3.10
PHP: 7.4.27
nagios: core 4.4.6
Mysql: MariaDB 10.7.1
pnp4nagios: 0.6.25
I succeeded to make it run on PHP 7.4 after I replaced all the references to get_magic_quotes like this:
sed -i "s/get_magic_quotes_runtime()/version_compare(PHP_VERSION, '5.3.0', '<') \&\& get_magic_quotes_runtime()/" file
sed -i "s/get_magic_quotes_gpc()/version_compare(PHP_VERSION, '5.3.0', '<') \&\& get_magic_quotes_gpc()/" file
and some other small issues that triggered php warnings/errors.
Then I imported the configurations from the old host running Nagiosql 3.2 and nagios 3.5.1 (I think) by importing the old /etc/nagiosql directory and then fixing all the complains.
Now I am in the situation where all my service checks are run on all the machines and I do not want that. However, even if I select individual hosts in the service definition, after I save, write config and check nagios conf, restart nagios...all my hosts are gone from the service definition.
Can you please help me with an advice?
Thank you,
Stefanita Vilcu