@@ -259,15 +259,15 @@ def __init__(self, header, filename, threshold, nagios_username="nagios", world_
259259 self .nagios_username = nagios_username
260260
261261 def report_and_exit (self ):
262- """Unzips the cache file and reads the JSON data back in , prints the data and exits accordingly.
262+ """Reads the cache, prints the data and exits accordingly.
263263
264264 If the cache data is too old (now - cache timestamp > self.threshold), a critical exit is produced.
265265 """
266266 try :
267- nagios_cache = FileCache (self .filename , True )
267+ nagios_cache = FileCache (self .filename )
268268 except (IOError , OSError ):
269269 logging .critical ("Error opening file %s for reading" , self .filename )
270- unknown_exit ("%s nagios gzipped JSON file unavailable (%s)" % (self .header , self .filename ))
270+ unknown_exit ("%s nagios cache unavailable (%s)" % (self .header , self .filename ))
271271
272272 (timestamp , nagios_exit_info ) = nagios_cache .load ('nagios' )
273273
@@ -296,7 +296,7 @@ def cache(self, nagios_exit, nagios_message):
296296 logging .info ("Wrote nagios check cache file %s at about %s" , self .filename , time .ctime (time .time ()))
297297 except (IOError , OSError ):
298298 # raising an error is ok, since we usually do this as the very last thing in the script
299- logging .error ("Cannot save to the nagios gzipped JSON file (%s)" , self .filename )
299+ logging .error ("Cannot save to the nagios cache (%s)" , self .filename )
300300 raise Exception ()
301301
302302 try :
0 commit comments