perfect meaning what ?
meaning that blocknotify HAS to be present on the B server, where the coin daemon is, so that it can access physically (by disk path) this compiled executable. Not on the A server where you said it is present.
So to summarize:
in server A ip: 1.1.1.1 yiimp is installed
in server B ip: 2.2.2.2 daemon is installed <- this is where blocknotify script must exist in order to work.