diff --git a/nagixsc_xml2nagios.py b/nagixsc_xml2nagios.py
index 3aee034cfbac0ade5d5ea0a499a4791d9afb2886..e05f6134fa8312ef3cbe08ee8e17124aec49686e 100755 (executable)
--- a/nagixsc_xml2nagios.py
+++ b/nagixsc_xml2nagios.py
#!/usr/bin/python
#import base64
-import datetime
import libxml2
import optparse
import os
import sys
+import time
NAGIOSCMDs = [ '/usr/local/nagios/var/rw/nagios.cmd', '/var/lib/nagios3/rw/nagios.cmd', ]
CHECKRESULTDIRs = [ '/usr/local/nagios/var/spool/checkresults', '/var/lib/nagios3/spool/checkresults', ]
doc = read_xml(options)
# Now timestamp AFTER getting the XML file
-now = int(datetime.datetime.now().strftime('%s'))
+now = long(time.time())
# Check XML against DTD