in reply to PER DBI gives selectrow_array error

I'm guessing you are failing to connect to the server, and as such the DBI object stays undef. You did remember to die when connecting, didn't you?
  • Comment on Re: PER DBI gives selectrow_array error

Replies are listed 'Best First'.
Re^2: PER DBI gives selectrow_array error
by tellblom (Initiate) on Jan 11, 2013 at 11:54 UTC
    Its a nagios check from the beginning and it seems like it works all over the World. Its just with this server. Could it be a timeout error?


      It could be a timeout error, a firewall error, database driver configuration error, or many other things. If you check your opens and prepare statements for errors and print the error message(s), you'll narrow things down a good bit.


      When your only tool is a hammer, all problems look like your thumb.

      Can you connect to the service on this problematic target server using another tool on the server on which the script is failing? Have you enabled error checking/debugging/tracing to find out what's failing?