Hello,<br><br>I am having a hard time making use of the Exec plugin on collectd. I have a python script that needs to run under root privileges and outputs the following: <br><br><b>PUTVAL <a href="http://128.111.55.213/totalsize/countr-5_minute_load">128.111.55.213/totalsize/countr-5_minute_load</a> interval=10 1276109739.42:1291<br>
</b><br>Basically, I am tracking the total size of a database and sending it to a server. "1291" here is the actual size value, and I hope the other options are correct. If I try logging the plugin, I get the following error: <br>
<br><b>exec plugin: exec_read_one: error = logfile plugin: fopen (/var/log/collectd.log) failed: Permission denied</b><br><br><br>In order to run the script as root, I followed the instructions here(<a href="http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)USRobotics(2f)USR8200.html">http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)USRobotics(2f)USR8200.html</a>).<br>
<br>So what I have done is added this to my collectd.conf file: <br><br><b>LoadPlugin exec<br><br><Plugin exec><br> Exec "nobody:root" "/root/script.py"<br></Plugin><br></b><br><br>and added the plugin name "totalsize" to <b>types.db</b>. Can someone please tell me what I am missing?<br>
<br>Thanks all,<br>Ravi<br>