Plugins for Cacti: Follow Symlink doesn't work

  • Filter
  • Time
  • Show
Clear All
new posts

  • Plugins for Cacti: Follow Symlink doesn't work

    Hi there

    The function of the "ss_get_mysql_stats.php" for Cacti is perfect, if I speek direct with the PHP-File. When I created a Link and work with this creation , it does not seem to function:

    SLES 11> php ss_get_mysql_stats.php
    #Output of Usage for PHP-Script
    SLES 11> ln -s ss_get_mysql_stats.php symlink.php
    SLES 11> php symlink.php
    #No Output

    No Output, no Errors, nothing... Even when I turned the Debug of the "Percona Monitoring Script" on, there is no output, no file were created...

    Normaly, PHP can handle Symlinks, so there seems to be a mistake in the Script, isn't there?

    Thanks, looking for your Answer
    Last edited by ZUGerMachine; 05-13-2014, 07:19 AM.

  • #2
    I guess the problem is the code on the beginning of the script:

    if ( !array_key_exists('SCRIPT_FILENAME', $_SERVER)
    || basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME']) ) {