X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=nagixsc_xml2nagios.py;h=58d5c0707e9bdb86a79bdc27ea52cdc7bbec7cbf;hb=bb31e0ae812d5f1fec9b1cca5a3924e20039862c;hp=868bca5e49630ff662d187d5ee04a4b1845330c7;hpb=96244f5f2c805eb597c2b083fa5c87a4ae1b36b4;p=nagixsc.git diff --git a/nagixsc_xml2nagios.py b/nagixsc_xml2nagios.py index 868bca5..58d5c07 100755 --- a/nagixsc_xml2nagios.py +++ b/nagixsc_xml2nagios.py @@ -92,11 +92,12 @@ elif options.mode == 'active': ############################################################################## -now = int(datetime.datetime.now().strftime('%s')) - # Get URL or file doc = read_xml(options) +# Now timestamp AFTER getting the XML file +now = int(datetime.datetime.now().strftime('%s')) + # Check XML against DTD if options.schemacheck: