Symlink in ZM_DIR_EVENTS disapear after some minutes
Posted: Thu Nov 20, 2008 6:02 pm
Hi guys:
I would like to have in the events dir, the monitor's ID (like it actually is) and a symlink to the id ($mid) directory with the monitors name ( $monitor['Name']).
For example:
if i have in events the directory '1', and the name for that monitor id is 'Dome1', I want a symlink named Dome1 to '1' event directory.
When I create a new monitor, the symlink exist because there are this 3 lines in the zm_actions.php file.:
[code]mkdir( ZM_DIR_EVENTS."/".$mid, 0755 );
chdir( ZM_DIR_EVENTS );
symlink( $mid, $new_monitor['Name'] ); [/code]
But after some minuts the symlink is deleted.
Why the symlink is unlinked and how can I keep that?
Thank you very much for your time.
I would like to have in the events dir, the monitor's ID (like it actually is) and a symlink to the id ($mid) directory with the monitors name ( $monitor['Name']).
For example:
if i have in events the directory '1', and the name for that monitor id is 'Dome1', I want a symlink named Dome1 to '1' event directory.
When I create a new monitor, the symlink exist because there are this 3 lines in the zm_actions.php file.:
[code]mkdir( ZM_DIR_EVENTS."/".$mid, 0755 );
chdir( ZM_DIR_EVENTS );
symlink( $mid, $new_monitor['Name'] ); [/code]
But after some minuts the symlink is deleted.
Why the symlink is unlinked and how can I keep that?
Thank you very much for your time.