Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

manual:087:3a_advanced_topics.2_php_script_server [2011/12/30 04:59]
gandalf
manual:087:3a_advanced_topics.2_php_script_server [2011/12/30 05:26] (current)
gandalf [Migration of Existing PHP Scripts to Script Server] example
Line 76: Line 76:
 If you are using a "//Script Query//" type function, then you must also change your XML file. Please reference the XML files in the <path_cacti>/resource/script_server directory for the specifics related to your required modifications. However, you may also follow the instructions below: If you are using a "//Script Query//" type function, then you must also change your XML file. Please reference the XML files in the <path_cacti>/resource/script_server directory for the specifics related to your required modifications. However, you may also follow the instructions below:
  
-  - Modify the <script_path> tag. Change it from:<code><script_path>|path_php_binary| -q |path_cacti|/scripts/myfucntion.php</script_path></code>to simply the following:<code> +  - Modify the <script_path> tag. Change it from:<code><script_path>|path_php_binary| -q |path_cacti|/scripts/myscript.php</script_path></code>to simply the following:<code> 
-<script_path>|path_cacti|/scripts/ss_myfunction.php</script_path></code>+<script_path>|path_cacti|/scripts/ss_myscript.php</script_path></code>
   - Add the following two XML tags below the <script_path> tag. Replace **ss_myfunction** with your function name:<code>   - Add the following two XML tags below the <script_path> tag. Replace **ss_myfunction** with your function name:<code>
 <script_function>ss_myfunction</script_function> <script_function>ss_myfunction</script_function>





Personal Tools