I'm posting some screenshots I have take to show what I mean is happening.
Hope it helps in someway
Search found 4 matches
- Fri May 27, 2022 12:42 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to connect to database with PDO - PHP script
- Replies: 6
- Views: 3030
- Fri May 27, 2022 7:51 am
- Forum: Open Source Nagios Projects
- Topic: Unable to connect to database with PDO - PHP script
- Replies: 6
- Views: 3030
Re: Unable to connect to database with PDO - PHP script
Seems pretty clear to me. this is what your query looks like: INSERT INTO servers (servername, mxwindow, reboot, environment, patchday, OS, GCM, InitialRemediation, time, remediation, category, updatesneeded, notes) values (:servername, :mxwindow, :reboot, :environment, :patchday, :OS, :GCM, :Initi...
- Mon May 23, 2022 3:06 am
- Forum: Open Source Nagios Projects
- Topic: Unable to connect to database with PDO - PHP script
- Replies: 6
- Views: 3030
Re: Unable to connect to database with PDO - PHP script
Are you sure that you DB engine is ON? And that user is without password? Maybe is root root? And little tip : If your string shouldnt be interpreted use ' instead " . It will faster. For example: define('DB_USER', 'root'); define('DB_PASSWORD', ''); $DB_SERVER = localhost'; $DB_DATABASE = 'ap...
- Mon May 09, 2022 7:45 am
- Forum: Open Source Nagios Projects
- Topic: Unable to connect to database with PDO - PHP script
- Replies: 6
- Views: 3030
Unable to connect to database with PDO - PHP script
Hi, i'm having a problem with a PHP script which I use to monitor an Informix DB. When I excute the nagios check that calls the php script, I allways get this message: "Unable to connect to database with PDO. Could not find driver". The command in nagios is defined like this: usr/bin/php -...