So i wanted to try nagiosgraph, everything works fine.
At least, when i do it manually the script runs en the graphs get drawn.
The thing is when i do ./insert.pl it deletes my perfdata.log and then nagios gets an error because it cant write to perfdata.log
Also insert.pl doenst run automaticlly but i think it has something to do with the problem above.
If there is any more information needed just let me know