Made script into daemon, added init.d configuration and script to generate graphs regularly.