What purpose does an .ok file serve in MRTG?

I'm new in mrtg and I can't find what the .ok files do in a mrtg system. Could you help regarding this doubt?

Answers 1

  • As even the official documentation doesn’t explain it I can only speculate, but there are some hints here:

    --confcache-file filename
           Use an alternate confcache-file (the default is to use the
           configuration-file appended with ".ok")
    
    --fhs
           Configure all mrtg paths to conform to the FHS specification.
           The following default values are assumed:
    
           confcachefile - /var/cache/mrtg/mrtg.ok
           pid-file      - /var/run/mrtg.pid
           lock-file     - /var/cache/mrtg/mrtg.lck
           log-file      - /var/log/mrtg.log
    

    The .ok file seems to be a cache file holding the mrtg configuration, by default the .ok extension is just appended to a copy of the configuration file, but you may specify an own .ok file using the --confcache-file flag. If you use the --fhs option, the config cache file will be saved as /var/cache/mrtg/mrtg.ok.


Related Questions