New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


MySQL datetime error

Votes:

0

Your Vote:

Up

Down

I set up a mysql sensor whit following sql code: SELECT * FROM `shop_cron_monitoring` WHERE `cron_name` != "cron_zap_import" AND `end_time` < DATE_SUB(NOW(),INTERVAL 24 HOUR) OR `cron_check` = "1"

I receive an error: "[System.String] value can not be parsed. Please keep in mind that any date or time formats need to use the "EN-US" format."

In the log is written: "Unable to convert MySQL date/time value to System.DateTime"

In the setting of "My Account" the timezone is right (UTC +01:00), and Dateformat is "System Settings", which is TT.MM.JJJJ (24h)

What can i do?

datetime error mysql

Created on Jul 21, 2016 2:06:10 PM by  backyard_racing (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Dear backyard_racing

The string containing the date must adhere to the MM/DD/YYYY format. (This is not related to PRTG's time format setting.) If your database returns the datestring as MM/DD/YYYY and you still get the error message, please open the sensor settings and enable the "Write Result to Disk" option. Please send the logfiles (usually located in "C:\ProgramData\Paessler\PRTG Network Monitor") to support@paessler.com including the original question.

Created on Jul 25, 2016 2:33:53 PM by  Arne Seifert [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.